From a11e508206335357b5582375b39e14eab37e197a Mon Sep 17 00:00:00 2001 From: mjwybrow Date: Tue, 10 Apr 2007 06:54:01 +0000 Subject: [PATCH] * src/conn-avoid-ref.cpp: Fix a crash where avoided items with an empty bounding box would crash in their move callback. Fixes #1694094. --- src/conn-avoid-ref.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2