From ea9bd6761ad840c12c063a14d9334dd807473a9d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 6 Jun 2009 14:39:21 +0100 Subject: [PATCH] [units] Always recompute pixels When asking for the pixels value we should always recompute it. The "pixel_set" guard can be left in place for future use. --- clutter/clutter-units.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/clutter/clutter-units.c b/clutter/clutter-units.c index 0132feded..34ca89642 100644 --- a/clutter/clutter-units.c +++ b/clutter/clutter-units.c @@ -328,9 +328,6 @@ clutter_units_to_pixels (ClutterUnits *units) { g_return_val_if_fail (units != NULL, 0.0); - if (units->pixels_set) - return units->pixels; - switch (units->unit_type) { case CLUTTER_UNIT_MM: