From 8ffded419b5effcc6c851148e8277188444b42eb Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 3 Sep 2007 19:35:19 +0000 Subject: [PATCH] patch 1786802 --- src/style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.30.2