diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-21 21:58:15 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-21 21:58:15 +0000 |
| commit | bdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch) | |
| tree | 45bccef1ec815708f9b54171e2d567344f155074 /src/connector-context.cpp | |
| parent | More cleaning. (diff) | |
| download | inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip | |
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/connector-context.cpp')
| -rw-r--r-- | src/connector-context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connector-context.cpp b/src/connector-context.cpp index b7e3942b9..42bf6584b 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -306,19 +306,19 @@ void SPConnectorContext::setup() { dt->canvas->gen_all_enter_events = true; } -void SPConnectorContext::set(Inkscape::Preferences::Entry* val) { +void SPConnectorContext::set(const Inkscape::Preferences::Entry& val) { SPEventContext* ec = this; SPConnectorContext *cc = SP_CONNECTOR_CONTEXT(ec); /* 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 == "curvature" ) { - cc->curvature = val->getDoubleLimited(); // prevents NaN and +/-Inf from messing up + cc->curvature = val.getDoubleLimited(); // prevents NaN and +/-Inf from messing up } else if ( name == "orthogonal" ) { - cc->isOrthogonal = val->getBool(); + cc->isOrthogonal = val.getBool(); } } |
