summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/spinbutton.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-09-23 22:11:51 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-09-23 22:11:51 +0000
commit62b2cd734e684a93d1b9215aa8044c620939170d (patch)
tree001d2dd71c7d077124519ac4dc0cf1e91fbaa36a /src/ui/widget/spinbutton.cpp
parentAdded missing registration of FeDistantLight; made sure warnings on missing t... (diff)
downloadinkscape-62b2cd734e684a93d1b9215aa8044c620939170d.tar.gz
inkscape-62b2cd734e684a93d1b9215aa8044c620939170d.zip
fix crash on uninitialized unittracker for spinbuttons. fixes crash on changing major grid line number, possibly other random crashes
Fixed bugs: - https://launchpad.net/bugs/1229183 (bzr r12581)
Diffstat (limited to 'src/ui/widget/spinbutton.cpp')
-rw-r--r--src/ui/widget/spinbutton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/spinbutton.cpp b/src/ui/widget/spinbutton.cpp
index 62c17f821..1114ff32b 100644
--- a/src/ui/widget/spinbutton.cpp
+++ b/src/ui/widget/spinbutton.cpp
@@ -65,7 +65,7 @@ int SpinButton::on_input(double* newvalue)
bool SpinButton::on_my_focus_in_event(GdkEventFocus* /*event*/)
{
- on_focus_in_value = get_value();
+ _on_focus_in_value = get_value();
return false; // do not consume the event
}
@@ -92,7 +92,7 @@ bool SpinButton::on_my_key_press_event(GdkEventKey* event)
void SpinButton::undo()
{
- set_value(on_focus_in_value);
+ set_value(_on_focus_in_value);
}