diff options
Diffstat (limited to 'src/star-context.cpp')
| -rw-r--r-- | src/star-context.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/star-context.cpp b/src/star-context.cpp index aecdd1b0d..cb3e663d7 100644 --- a/src/star-context.cpp +++ b/src/star-context.cpp @@ -167,19 +167,19 @@ void SPStarContext::setup() { this->_message_context = new Inkscape::MessageContext(this->desktop->messageStack()); } -void SPStarContext::set(Inkscape::Preferences::Entry* val) { - Glib::ustring path = val->getEntryName(); +void SPStarContext::set(const Inkscape::Preferences::Entry& val) { + Glib::ustring path = val.getEntryName(); if (path == "magnitude") { - this->magnitude = CLAMP(val->getInt(5), 3, 1024); + this->magnitude = CLAMP(val.getInt(5), 3, 1024); } else if (path == "proportion") { - this->proportion = CLAMP(val->getDouble(0.5), 0.01, 2.0); + this->proportion = CLAMP(val.getDouble(0.5), 0.01, 2.0); } else if (path == "isflatsided") { - this->isflatsided = val->getBool(); + this->isflatsided = val.getBool(); } else if (path == "rounded") { - this->rounded = val->getDouble(); + this->rounded = val.getDouble(); } else if (path == "randomized") { - this->randomized = val->getDouble(); + this->randomized = val.getDouble(); } } |
