From baa9faf854a038d179471dbf1bbc53b90beca2e1 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Mon, 8 Sep 2008 11:26:05 +0000 Subject: [PATCH] Fix LP #258124 and crash when copying LPEs --- src/ui/clipboard.cpp | 2 +- src/ui/dialog/livepatheffect-editor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.30.2