From: rwst Date: Sun, 29 Jan 2006 10:01:47 +0000 (+0000) Subject: remove unneeded line, clarify some code (addresses test box warnings) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ba1ceeeb48d86a348afe6578c7d59a2670cd284;p=inkscape.git remove unneeded line, clarify some code (addresses test box warnings) --- diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 0e3bf206a..ee9609282 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -3012,8 +3012,6 @@ static void connector_spacing_changed(GtkAdjustment *adj, GtkWidget *tbl) // in turn, prevent callbacks from responding g_object_set_data(G_OBJECT(tbl), "freeze", GINT_TO_POINTER(TRUE)); - double old_spacing = desktop->namedview->connector_spacing; - Inkscape::XML::Node *repr = SP_OBJECT_REPR(desktop->namedview); sp_repr_set_css_double(repr, "inkscape:connector-spacing", adj->value); @@ -3022,7 +3020,8 @@ static void connector_spacing_changed(GtkAdjustment *adj, GtkWidget *tbl) GSList *items = get_avoided_items(NULL, desktop->currentRoot(), desktop); for ( GSList const *iter = items ; iter != NULL ; iter = iter->next ) { SPItem *item = reinterpret_cast(iter->data); - avoid_item_move(&NR::identity(), item); + NR::Matrix m = NR::identity(); + avoid_item_move(&m, item); } if (items) {