diff options
| author | Samuel Buttigieg <sambut1987@gmail.com> | 2018-09-08 21:46:28 +0000 |
|---|---|---|
| committer | Samuel Buttigieg <sambut1987@gmail.com> | 2018-09-08 21:46:28 +0000 |
| commit | f2b90103378648e125de69f9738fdc546c2dad5d (patch) | |
| tree | ee9a98b10911164a1a3693785e2dfc93fc6617f7 /src/selection-chemistry.cpp | |
| parent | fix Bug #1786269 (diff) | |
| download | inkscape-f2b90103378648e125de69f9738fdc546c2dad5d.tar.gz inkscape-f2b90103378648e125de69f9738fdc546c2dad5d.zip | |
Update selection-chemistry.cpp
Diffstat (limited to '')
| -rwxr-xr-x | src/selection-chemistry.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 00c08a4ca..e9b9bb469 100755 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -546,19 +546,19 @@ void ObjectSet::duplicate(bool suppressDone, bool duplicateLayer) } } } else if (path) { - if (old_clone->getAttribute("inkscape:connection-start") != nullptr) { - const char *old_start = old_clone->getAttribute("inkscape:connection-start"); - const char *old_end = old_clone->getAttribute("inkscape:connection-end"); - SPObject *new_clone = doc->getObjectById(new_ids[i]); - for (guint j = 0; j < old_ids.size(); j++) { - if(old_start == Glib::ustring("#") + old_ids[j]) { - new_clone->getRepr()->setAttribute("inkscape:connection-start", Glib::ustring("#") + new_ids[j]); - } - if(old_end == Glib::ustring("#") + old_ids[j]) { - new_clone->getRepr()->setAttribute("inkscape:connection-end", Glib::ustring("#") + new_ids[j]); - } - } - } + if (old_clone->getAttribute("inkscape:connection-start") != nullptr) { + const char *old_start = old_clone->getAttribute("inkscape:connection-start"); + const char *old_end = old_clone->getAttribute("inkscape:connection-end"); + SPObject *new_clone = doc->getObjectById(new_ids[i]); + for (guint j = 0; j < old_ids.size(); j++) { + if(old_start == Glib::ustring("#") + old_ids[j]) { + new_clone->getRepr()->setAttribute("inkscape:connection-start", Glib::ustring("#") + new_ids[j]); + } + if(old_end == Glib::ustring("#") + old_ids[j]) { + new_clone->getRepr()->setAttribute("inkscape:connection-end", Glib::ustring("#") + new_ids[j]); + } + } + } } } } |
