From: cilix42 Date: Mon, 8 Sep 2008 11:26:05 +0000 (+0000) Subject: Fix LP #258124 and crash when copying LPEs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=baa9faf854a038d179471dbf1bbc53b90beca2e1;p=inkscape.git Fix LP #258124 and crash when copying LPEs --- diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index ac35e7be6..cad6fa011 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -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(selection->itemList()) ; item ; item = item->next) { _applyPathEffect(reinterpret_cast(item->data), effect); } diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 567ee24da..44f37083b 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -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 }