summaryrefslogtreecommitdiffstats
path: root/src/conn-avoid-ref.cpp
diff options
context:
space:
mode:
authormjwybrow <mjwybrow@users.sourceforge.net>2007-04-10 06:54:01 +0000
committermjwybrow <mjwybrow@users.sourceforge.net>2007-04-10 06:54:01 +0000
commit0b2c9745ac6a227c13459779d3f73091707d11c0 (patch)
tree7c482aff91724b58dc8ffa8330be09c65eafac0d /src/conn-avoid-ref.cpp
parentMade safe for empty containers (diff)
downloadinkscape-0b2c9745ac6a227c13459779d3f73091707d11c0.tar.gz
inkscape-0b2c9745ac6a227c13459779d3f73091707d11c0.zip
* src/conn-avoid-ref.cpp: Fix a crash where avoided items with an empty
bounding box would crash in their move callback. Fixes #1694094. (bzr r2845)
Diffstat (limited to 'src/conn-avoid-ref.cpp')
-rw-r--r--src/conn-avoid-ref.cpp6
1 files 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);