summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-12-07 14:45:26 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-12-14 22:11:55 +0000
commitaeb9391d258b5f76c64333633286abf841d508c5 (patch)
treec07e602458d0065b5c6316824e618b1a4dd15f55 /src/path-chemistry.cpp
parentThis commit: (diff)
downloadinkscape-aeb9391d258b5f76c64333633286abf841d508c5.tar.gz
inkscape-aeb9391d258b5f76c64333633286abf841d508c5.zip
Make optional convert clone to path by a prefs option
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 9ad6c8c76..d87dd96cd 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -55,7 +55,10 @@ ObjectSet::combine(bool skip_undo)
{
//Inkscape::Selection *selection = desktop->getSelection();
SPDocument *doc = document();
- unlinkRecursive(true);
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if (prefs->getBool("/options/pathoperationsunlink/value", true)) {
+ unlinkRecursive(true);
+ }
std::vector<SPItem*> items_copy(items().begin(), items().end());
if (items_copy.size() < 1) {
@@ -306,7 +309,10 @@ void ObjectSet::toCurves(bool skip_undo)
// set "busy" cursor
desktop()->setWaitingCursor();
}
- unlinkRecursive(true);
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if (prefs->getBool("/options/pathoperationsunlink/value", true)) {
+ unlinkRecursive(true);
+ }
std::vector<SPItem*> selected(items().begin(), items().end());
std::vector<Inkscape::XML::Node*> to_select;
clear();
@@ -337,7 +343,10 @@ void ObjectSet::toLPEItems()
if (isEmpty()) {
return;
}
- unlinkRecursive(true);
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if (prefs->getBool("/options/pathoperationsunlink/value", true)) {
+ unlinkRecursive(true);
+ }
std::vector<SPItem*> selected(items().begin(), items().end());
std::vector<Inkscape::XML::Node*> to_select;
clear();