From 17c07175172b0dec788aeefdedcf76a9c9916b99 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 13 Apr 2008 21:05:27 +0000 Subject: [PATCH] now with 2geom's arc implem. : accept pasting ellipse path params. --- src/live_effects/parameter/path.cpp | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 689ec4a8c..8d31b1dfb 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -60,7 +60,6 @@ PathParam::PathParam( const Glib::ustring& label, const Glib::ustring& tip, oncanvas_editable = true; ref_changed_connection = ref.changedSignal().connect(sigc::mem_fun(*this, &PathParam::ref_changed)); - } PathParam::~PathParam() @@ -355,19 +354,13 @@ PathParam::on_paste_button_click() if (svgd == "") return; - // Temporary hack until 2Geom supports arcs in SVGD - if (svgd.find('A') != Glib::ustring::npos) { - SP_ACTIVE_DESKTOP->messageStack()->flash( Inkscape::WARNING_MESSAGE, - _("This effect does not support arcs yet, try to convert to path.") ); - return; - } else { - // remove possible link to path - remove_link(); + // remove possible link to path + remove_link(); - param_write_to_repr(svgd.data()); - signal_path_pasted.emit(); - sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT, - _("Paste path parameter")); + param_write_to_repr(svgd.data()); + signal_path_pasted.emit(); + sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT, + _("Paste path parameter")); } } -- 2.30.2