Code

patch 1786802
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 3 Sep 2007 19:35:19 +0000 (19:35 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 3 Sep 2007 19:35:19 +0000 (19:35 +0000)
src/style.cpp

index 87151c5a847feb38dd29251140c03aa88e37f460..df3a470a53d389307ca545271a3d0c5fee56b7af 100644 (file)
@@ -2756,7 +2756,7 @@ sp_style_read_iscale24(SPIScale24 *val, gchar const *str)
         if (sp_svg_number_read_f(str, &value)) {
             val->set = TRUE;
             val->inherit = FALSE;
-            value = CLAMP(value, 0.0f, (gfloat) SP_SCALE24_MAX);
+            value = CLAMP(value, 0.0, 1.0);
             val->value = SP_SCALE24_FROM_FLOAT(value);
         }
     }