From d624d3acadde3154b958f68564fb3ab54a6b5d36 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 8 Jul 2012 10:24:55 +0900 Subject: Fix for 181473 : Patch for Layers drag and drop crash (bzr r11531) --- src/sp-item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 9f50e5e0c..b1eb5a24a 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -406,7 +406,7 @@ void SPItem::moveTo(SPItem *target, gboolean intoafter) { our_ref->parent()->changeOrder(our_ref, target_ref); } - if (first) { + if (first && parent) { // If "first" ensure it appears after the defs etc lowerToBottom(); return; -- cgit v1.2.3