diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2009-07-13 03:24:24 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2009-07-13 03:24:24 +0000 |
| commit | bb5018e116c7323c2ae54618135174891ffbe7fc (patch) | |
| tree | e2d49615786f2a67c76846f32d798c8bce5851e7 /src/star-context.cpp | |
| parent | libnr/nr-macros.h: Change our CLAMP macro definition to provide both CLAMP an... (diff) | |
| download | inkscape-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.cpp | 5 |
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") { |
