diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-02 23:14:28 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-02 23:14:28 +0000 |
| commit | 08382df305f91a07349031e785500eb7be34872c (patch) | |
| tree | a47356965661c877b46ac2a26ebc017638291477 /src/selection-chemistry.cpp | |
| parent | Remove unrelated code (diff) | |
| download | inkscape-08382df305f91a07349031e785500eb7be34872c.tar.gz inkscape-08382df305f91a07349031e785500eb7be34872c.zip | |
Move finctions away object sets
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 43e7d8af5..0bd611163 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -95,8 +95,6 @@ SPCycleType SP_CYCLING = SP_CYCLE_FOCUS; #include "ui/tool/control-point-selection.h" #include "ui/tool/multi-path-manipulator.h" #include "live_effects/effect.h" -#include "live_effects/lpe-powerclip.h" -#include "live_effects/lpe-powermask.h" #include "live_effects/parameter/originalpath.h" #include "layer-manager.h" #include "object-set.h" @@ -3864,7 +3862,7 @@ void ObjectSet::setClipGroup() * If \a apply_clip_path parameter is true, clipPath is created, otherwise mask * */ - void ObjectSet::setMask(bool apply_clip_path, bool apply_to_layer, bool skip_undo, bool inverse) + void ObjectSet::setMask(bool apply_clip_path, bool apply_to_layer, bool skip_undo) { if(!desktop() && apply_to_layer) return; @@ -4018,27 +4016,7 @@ void ObjectSet::setClipGroup() } apply_mask_to->setAttribute(attributeName, Glib::ustring("url(#") + mask_id + ')'); - if (inverse) { - using namespace Inkscape::LivePathEffect; - if (apply_clip_path) { - Effect::createAndApply(POWERCLIP, doc, item); - Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE(); - lpe->getRepr()->setAttribute("is_inverse", "false"); - lpe->getRepr()->setAttribute("is_visible", "true"); - lpe->getRepr()->setAttribute("inverse", "true"); - lpe->getRepr()->setAttribute("flatten", "false"); - lpe->getRepr()->setAttribute("hide_clip", "false"); - dynamic_cast<LPEPowerClip *>(lpe)->convertShapes(); - } else { - Effect::createAndApply(POWERMASK, doc, item); - Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE(); - lpe->getRepr()->setAttribute("invert", "false"); - lpe->getRepr()->setAttribute("is_visible", "true"); - lpe->getRepr()->setAttribute("hide_mask", "false"); - lpe->getRepr()->setAttribute("background", "true"); - lpe->getRepr()->setAttribute("background_color", "#ffffffff"); - } - } + } for (std::vector<SPItem*>::const_iterator i = items_to_delete.begin(); i != items_to_delete.end(); ++i) { |
