summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
-rw-r--r--src/live_effects/parameter/path.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp
index 295e40b7a..16e579d16 100644
--- a/src/live_effects/parameter/path.cpp
+++ b/src/live_effects/parameter/path.cpp
@@ -346,24 +346,29 @@ PathParam::on_edit_button_click()
}
void
-PathParam::on_paste_button_click()
+PathParam::paste_param_path(const char *svgd)
{
- Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get();
- Glib::ustring svgd = cm->getPathParameter();
-
if (svgd == "")
return;
// remove possible link to path
remove_link();
- param_write_to_repr(svgd.data());
+ param_write_to_repr(svgd);
signal_path_pasted.emit();
sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT,
_("Paste path parameter"));
}
void
+PathParam::on_paste_button_click()
+{
+ Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get();
+ Glib::ustring svgd = cm->getPathParameter();
+ paste_param_path(svgd.data());
+}
+
+void
PathParam::on_copy_button_click()
{
Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get();