diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-01 06:39:07 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-01 06:39:07 +0000 |
| commit | 174908a7e0d4fec3657da94d243ef30b14b8f30b (patch) | |
| tree | 05d3b49c31ddd3fd1754b6a42de8192ba0119560 /src/ui/dialog/livepatheffect-editor.cpp | |
| parent | Include more feature libraries (diff) | |
| download | inkscape-174908a7e0d4fec3657da94d243ef30b14b8f30b.tar.gz inkscape-174908a7e0d4fec3657da94d243ef30b14b8f30b.zip | |
Allow rects be LPE like other primitives
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 097078e56..8767a109f 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -35,7 +35,6 @@ #include "object/sp-item-group.h" #include "object/sp-path.h" -#include "object/sp-rect.h" #include "object/sp-use.h" #include "object/sp-text.h" @@ -407,27 +406,6 @@ LivePathEffectEditor::setDesktop(SPDesktop *desktop) } } -void -LivePathEffectEditor::rectsToCurves(SPItem* topitem, SPItem *item) -{ - Inkscape::Selection *sel = _getSelection(); - if ( dynamic_cast<SPRect *>(item) ) { - sel->clear(); - sel->set(item); - sel->toCurves(); - if (topitem == item) { - return; - } - } else if( SPGroup *group = dynamic_cast<SPGroup *>(item)){ - std::vector<SPItem*> const item_list = sp_item_group_item_list(group); - for (auto sub_item : item_list) { - rectsToCurves(topitem, sub_item); - } - } - sel->set(topitem); -} - - /*######################################################################## # BUTTON CLICK HANDLERS (callbacks) ########################################################################*/ @@ -455,7 +433,6 @@ LivePathEffectEditor::onAdd() if (!data) { return; } - rectsToCurves(item, item); item = sel->singleItem(); // get new item LivePathEffect::Effect::createAndApply(data->key.c_str(), doc, item); |
