summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ae063aa)
raw | patch | inline | side by side (parent: ae063aa)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 3 Sep 2007 19:35:19 +0000 (19:35 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 3 Sep 2007 19:35:19 +0000 (19:35 +0000) |
src/style.cpp | patch | blob | history |
diff --git a/src/style.cpp b/src/style.cpp
index 87151c5a847feb38dd29251140c03aa88e37f460..df3a470a53d389307ca545271a3d0c5fee56b7af 100644 (file)
--- a/src/style.cpp
+++ b/src/style.cpp
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);
}
}