summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorAdonis Papaderos <ado.papas@yahoo.gr>2010-11-25 11:05:29 +0000
committerAdonis Papaderos <ado.papas@yahoo.gr>2010-11-25 11:05:29 +0000
commitff3b6f07ce2fbcb02cfc99785b0799cac2a1afc8 (patch)
tree12826fd5edc0a1cc1895a35f4e1b767157dc373d /src/widgets/toolbox.cpp
parentDutch tips tutorial added. (diff)
downloadinkscape-ff3b6f07ce2fbcb02cfc99785b0799cac2a1afc8.tar.gz
inkscape-ff3b6f07ce2fbcb02cfc99785b0799cac2a1afc8.zip
Fix Bug #669537 - crash when activating "snap to path"
mode after changing stroke width (no focus-out-event) (bzr r9917.3.1)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 9a2fc8dd2..a6740fcec 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -8063,17 +8063,18 @@ static void connector_tb_event_attr_changed(Inkscape::XML::Node *repr,
if (g_object_get_data(G_OBJECT(tbl), "freeze")) {
return;
}
- if (strcmp(name, "inkscape:connector-spacing") == 0)
- {
- GtkAdjustment *adj = (GtkAdjustment*)
- gtk_object_get_data(GTK_OBJECT(tbl), "spacing");
- gdouble spacing = defaultConnSpacing;
- sp_repr_get_double(repr, "inkscape:connector-spacing", &spacing);
-
- gtk_adjustment_set_value(adj, spacing);
- gtk_adjustment_value_changed(adj);
+ if (strcmp(name, "inkscape:connector-spacing") != 0) {
+ return;
}
+ GtkAdjustment *adj = (GtkAdjustment*)
+ gtk_object_get_data(GTK_OBJECT(tbl), "spacing");
+ gdouble spacing = defaultConnSpacing;
+ sp_repr_get_double(repr, "inkscape:connector-spacing", &spacing);
+
+ gtk_adjustment_set_value(adj, spacing);
+ gtk_adjustment_value_changed(adj);
+
spinbutton_defocus(GTK_OBJECT(tbl));
}