summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/eraser-tool.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-11-09 21:03:39 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-11-09 21:03:39 +0000
commitafe611e02639684bc57a4bda796dbd6305ab38a9 (patch)
treeed672d400bfabb4d49d9608b16635f6e77aa414d /src/ui/tools/eraser-tool.cpp
parentClick-drag selects nodes rather than creates new mesh if mesh already exists. (diff)
parentMove boolop functions from sp_selected_path_<op> to ObjectSet::path<op> (diff)
downloadinkscape-afe611e02639684bc57a4bda796dbd6305ab38a9.tar.gz
inkscape-afe611e02639684bc57a4bda796dbd6305ab38a9.zip
merge boolop branch: Move boolop functions from sp_selected_path_<op> to ObjectSet::path<op>
(bzr r15232)
Diffstat (limited to 'src/ui/tools/eraser-tool.cpp')
-rw-r--r--src/ui/tools/eraser-tool.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/tools/eraser-tool.cpp b/src/ui/tools/eraser-tool.cpp
index 4f941e534..ae312e054 100644
--- a/src/ui/tools/eraser-tool.cpp
+++ b/src/ui/tools/eraser-tool.cpp
@@ -714,7 +714,7 @@ void EraserTool::set_to_accumulated() {
Inkscape::GC::release(dup); // parent takes over
selection->set(dup);
if (!this->nowidth) {
- sp_selected_path_union_skip_undo(selection);
+ selection->pathUnion(true);
}
selection->add(item);
if(item->style->fill_rule.value == SP_WIND_RULE_EVENODD){
@@ -725,9 +725,9 @@ void EraserTool::set_to_accumulated() {
css = 0;
}
if (this->nowidth) {
- sp_selected_path_cut_skip_undo(selection);
+ selection->pathCut(true);
} else {
- sp_selected_path_diff_skip_undo(selection);
+ selection->pathDiff(true);
}
workDone = true; // TODO set this only if something was cut.
bool break_apart = prefs->getBool("/tools/eraser/break_apart", false);
@@ -762,7 +762,7 @@ void EraserTool::set_to_accumulated() {
this->repr->parent()->appendChild(dup);
Inkscape::GC::release(dup); // parent takes over
selection->set(dup);
- sp_selected_path_union_skip_undo(selection);
+ selection->pathUnion(true);
if (bbox && bbox->intersects(*eraserBbox)) {
SPClipPath *clip_path = item->clip_ref->getObject();
if (clip_path) {
@@ -786,7 +786,7 @@ void EraserTool::set_to_accumulated() {
sp_object_unref(clip_path);
selection->raiseToTop(true);
selection->add(dup_clip);
- sp_selected_path_diff_skip_undo(selection);
+ selection->pathDiff(true);
SPItem * clip = SP_ITEM(*(selection->items().begin()));
}
}
@@ -802,7 +802,7 @@ void EraserTool::set_to_accumulated() {
rect->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
selection->raiseToTop(true);
selection->add(rect);
- sp_selected_path_diff_skip_undo(selection);
+ selection->pathDiff(true);
}
selection->raiseToTop(true);
selection->add(item);