From: buliabyak Date: Mon, 3 Sep 2007 19:35:19 +0000 (+0000) Subject: patch 1786802 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ffded419b5effcc6c851148e8277188444b42eb;p=inkscape.git patch 1786802 --- diff --git a/src/style.cpp b/src/style.cpp index 87151c5a8..df3a470a5 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -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); } }