summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
commitbdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch)
tree45bccef1ec815708f9b54171e2d567344f155074 /src/rect-context.cpp
parentMore cleaning. (diff)
downloadinkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz
inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index e6c3cfdd9..42e6c4452 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -150,15 +150,15 @@ void SPRectContext::setup() {
this->_message_context = new Inkscape::MessageContext(this->desktop->messageStack());
}
-void SPRectContext::set(Inkscape::Preferences::Entry* val) {
+void SPRectContext::set(const Inkscape::Preferences::Entry& val) {
/* fixme: Proper error handling for non-numeric data. Use a locale-independent function like
* g_ascii_strtod (or a thin wrapper that does the right thing for invalid values inf/nan). */
- Glib::ustring name = val->getEntryName();
+ Glib::ustring name = val.getEntryName();
if ( name == "rx" ) {
- this->rx = val->getDoubleLimited(); // prevents NaN and +/-Inf from messing up
+ this->rx = val.getDoubleLimited(); // prevents NaN and +/-Inf from messing up
} else if ( name == "ry" ) {
- this->ry = val->getDoubleLimited();
+ this->ry = val.getDoubleLimited();
}
}