summaryrefslogtreecommitdiffstats
path: root/src/star-context.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2009-07-13 03:24:24 +0000
committerpjrm <pjrm@users.sourceforge.net>2009-07-13 03:24:24 +0000
commitbb5018e116c7323c2ae54618135174891ffbe7fc (patch)
treee2d49615786f2a67c76846f32d798c8bce5851e7 /src/star-context.cpp
parentlibnr/nr-macros.h: Change our CLAMP macro definition to provide both CLAMP an... (diff)
downloadinkscape-bb5018e116c7323c2ae54618135174891ffbe7fc.tar.gz
inkscape-bb5018e116c7323c2ae54618135174891ffbe7fc.zip
sp-star.cpp, star-context.cpp: s/CLAMP/NR_CLAMP/, to make clear (and ensure) that we're using the libnr version rather than the glib version. (This change is probably desirable in most of Inkscape, but star-related code in particular is known to be sensitive to the difference.)
(bzr r8273)
Diffstat (limited to 'src/star-context.cpp')
-rw-r--r--src/star-context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/star-context.cpp b/src/star-context.cpp
index c5eff3c6a..f0c64e875 100644
--- a/src/star-context.cpp
+++ b/src/star-context.cpp
@@ -34,6 +34,7 @@
#include "desktop.h"
#include "desktop-style.h"
#include "message-context.h"
+#include "libnr/nr-macros.h"
#include "pixmaps/cursor-star.xpm"
#include "sp-metrics.h"
#include <glibmm/i18n.h>
@@ -204,9 +205,9 @@ sp_star_context_set (SPEventContext *ec, Inkscape::Preferences::Entry *val)
Glib::ustring path = val->getEntryName();
if (path == "magnitude") {
- sc->magnitude = CLAMP (val->getInt(5), 3, 1024);
+ sc->magnitude = NR_CLAMP(val->getInt(5), 3, 1024);
} else if (path == "proportion") {
- sc->proportion = CLAMP (val->getDouble(0.5), 0.01, 2.0);
+ sc->proportion = NR_CLAMP(val->getDouble(0.5), 0.01, 2.0);
} else if (path == "isflatsided") {
sc->isflatsided = val->getBool();
} else if (path == "rounded") {