summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-07-11 00:42:57 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-07-11 00:42:57 +0000
commit6fc47b613fb0b33b4866a5e54c231e9426e2ca3d (patch)
tree99cfc1cc42d5234e9b109fbca062dfd7833ccd6f /src/widgets
parentTranslations. French translation update. (diff)
downloadinkscape-6fc47b613fb0b33b4866a5e54c231e9426e2ca3d.tar.gz
inkscape-6fc47b613fb0b33b4866a5e54c231e9426e2ca3d.zip
Fix for 167781 : opacity in selected style loses focus on kbd value scroll, fix for Esc
(bzr r11540)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/spinbutton-events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/spinbutton-events.cpp b/src/widgets/spinbutton-events.cpp
index 7f1a1f8c6..290b0bb75 100644
--- a/src/widgets/spinbutton-events.cpp
+++ b/src/widgets/spinbutton-events.cpp
@@ -43,7 +43,9 @@ void
spinbutton_undo (GtkWidget *w)
{
gdouble *ini = (gdouble *) g_object_get_data(G_OBJECT (w), "ini");
- gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), *ini);
+ if (ini) {
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(w), *ini);
+ }
}
void