summaryrefslogtreecommitdiffstats
path: root/src/pen-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pen-context.cpp')
-rw-r--r--src/pen-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 177aeaca9..00f7294be 100644
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -234,14 +234,14 @@ void SPPenContext::finish() {
/**
* Callback that sets key to value in pen context.
*/
-void SPPenContext::set(Inkscape::Preferences::Entry* val) {
+void SPPenContext::set(const Inkscape::Preferences::Entry& val) {
SPEventContext* ec = this;
SPPenContext *pc = SP_PEN_CONTEXT(ec);
- Glib::ustring name = val->getEntryName();
+ Glib::ustring name = val.getEntryName();
if (name == "mode") {
- if ( val->getString() == "drag" ) {
+ if ( val.getString() == "drag" ) {
pc->mode = SP_PEN_CONTEXT_MODE_DRAG;
} else {
pc->mode = SP_PEN_CONTEXT_MODE_CLICK;