summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/originalpath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/originalpath.cpp')
-rw-r--r--src/live_effects/parameter/originalpath.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/parameter/originalpath.cpp b/src/live_effects/parameter/originalpath.cpp
index 3092f678b..4cb7fc4e4 100644
--- a/src/live_effects/parameter/originalpath.cpp
+++ b/src/live_effects/parameter/originalpath.cpp
@@ -16,6 +16,10 @@
#include "display/curve.h"
#include "live_effects/effect.h"
+#include "inkscape.h"
+#include "desktop-handles.h"
+#include "selection.h"
+
namespace Inkscape {
namespace LivePathEffect {
@@ -100,8 +104,14 @@ OriginalPathParam::linked_modified_callback(SPObject *linked_obj, guint /*flags*
void
OriginalPathParam::on_select_original_button_click()
{
- /// \todo select original path
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
SPItem *original = ref.getObject();
+ if (desktop == NULL || original == NULL) {
+ return;
+ }
+ Inkscape::Selection *selection = sp_desktop_selection(desktop);
+ selection->clear();
+ selection->set(original);
}
} /* namespace LivePathEffect */