From: mjwybrow Date: Tue, 10 Apr 2007 06:54:01 +0000 (+0000) Subject: * src/conn-avoid-ref.cpp: Fix a crash where avoided items with an empty X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a11e508206335357b5582375b39e14eab37e197a;p=inkscape.git * src/conn-avoid-ref.cpp: Fix a crash where avoided items with an empty bounding box would crash in their move callback. Fixes #1694094. --- diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp index 540e8205f..864eadbba 100644 --- a/src/conn-avoid-ref.cpp +++ b/src/conn-avoid-ref.cpp @@ -94,11 +94,11 @@ void SPAvoidRef::handleSettingChange(void) _transformed_connection.disconnect(); if (new_setting) { - _transformed_connection = item->connectTransformed( - sigc::ptr_fun(&avoid_item_move)); - Avoid::Polygn poly = avoid_item_poly(item); if (poly.pn > 0) { + _transformed_connection = item->connectTransformed( + sigc::ptr_fun(&avoid_item_move)); + const char *id = SP_OBJECT_REPR(item)->attribute("id"); g_assert(id != NULL);