Code

Fix LP #258124 and crash when copying LPEs
authorcilix42 <cilix42@users.sourceforge.net>
Mon, 8 Sep 2008 11:26:05 +0000 (11:26 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Mon, 8 Sep 2008 11:26:05 +0000 (11:26 +0000)
src/ui/clipboard.cpp
src/ui/dialog/livepatheffect-editor.cpp

index ac35e7be6cd6ca278f3eb1ce3cf369fa5fb681df..cad6fa011bbef90d1d7695bc2da187166c95ddf2 100644 (file)
@@ -454,7 +454,7 @@ bool ClipboardManagerImpl::pastePathEffect()
             if ( effect ) {
                 _pasteDefs(tempdoc);
                 // make sure all selected items are converted to paths first (i.e. rectangles)
-                sp_selected_path_to_curves(false);
+                sp_selected_path_to_curves(desktop, false);
                 for (GSList *item = const_cast<GSList *>(selection->itemList()) ; item ; item = item->next) {
                     _applyPathEffect(reinterpret_cast<SPItem*>(item->data), effect);
                 }
index 567ee24dadf47ada4130dd7d0b7e0c0a7166dbb6..44f37083b0402f28bbe075ff130b84f028afc47e 100644 (file)
@@ -354,7 +354,7 @@ LivePathEffectEditor::onApply()
 
             // If item is a SPRect, convert it to path first:
             if ( SP_IS_RECT(item) ) {
-                sp_selected_path_to_curves(false);
+                sp_selected_path_to_curves(current_desktop, false);
                 item = sel->singleItem(); // get new item
             }