summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-09-03 19:35:19 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-09-03 19:35:19 +0000
commitdda8a15c584ef8a5bb0da75af58f74ba895bf52f (patch)
treeb8fe907b62615c088917c6e90eaf924ec9315c09 /src/style.cpp
parentreduce force of color tweaking (diff)
downloadinkscape-dda8a15c584ef8a5bb0da75af58f74ba895bf52f.tar.gz
inkscape-dda8a15c584ef8a5bb0da75af58f74ba895bf52f.zip
patch 1786802
(bzr r3673)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}