[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.
This commit is contained in:
Emmanuele Bassi 2009-06-06 14:39:21 +01:00
parent 7e5f7eb790
commit ea9bd6761a

View File

@ -328,9 +328,6 @@ clutter_units_to_pixels (ClutterUnits *units)
{ {
g_return_val_if_fail (units != NULL, 0.0); g_return_val_if_fail (units != NULL, 0.0);
if (units->pixels_set)
return units->pixels;
switch (units->unit_type) switch (units->unit_type)
{ {
case CLUTTER_UNIT_MM: case CLUTTER_UNIT_MM: