diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-12-13 19:21:23 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-12-13 19:21:23 +0000 |
| commit | b3abbe4f9bb5e1db77547c791425586e43047dc0 (patch) | |
| tree | cf194a00456db70ee6037aff3f154a3b55e3ef5d /src/selection-chemistry.cpp | |
| parent | Fix crash on hidden guides (diff) | |
| download | inkscape-b3abbe4f9bb5e1db77547c791425586e43047dc0.tar.gz inkscape-b3abbe4f9bb5e1db77547c791425586e43047dc0.zip | |
Perfomance optimization bugfix
Fixed bugs:
- https://launchpad.net/bugs/1515971
(bzr r14528)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index cdbc6a937..e6d5f174e 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1341,6 +1341,7 @@ void sp_selection_to_next_layer(SPDesktop *dt, bool suppressDone) bool no_more = false; // Set to true, if no more layers above SPObject *next=Inkscape::next_layer(dt->currentRoot(), dt->currentLayer()); if (next) { + selection->clear(); sp_selection_change_layer_maintain_clones(items,next); std::vector<Inkscape::XML::Node*> temp_clip; sp_selection_copy_impl(items, temp_clip, dt->doc()->getReprDoc()); @@ -1384,6 +1385,7 @@ void sp_selection_to_prev_layer(SPDesktop *dt, bool suppressDone) bool no_more = false; // Set to true, if no more layers below SPObject *next=Inkscape::previous_layer(dt->currentRoot(), dt->currentLayer()); if (next) { + selection->clear(); sp_selection_change_layer_maintain_clones(items,next); std::vector<Inkscape::XML::Node*> temp_clip; sp_selection_copy_impl(items, temp_clip, dt->doc()->getReprDoc()); // we're in the same doc, so no need to copy defs @@ -1424,6 +1426,7 @@ void sp_selection_to_layer(SPDesktop *dt, SPObject *moveto, bool suppressDone) std::vector<SPItem*> items(selection->itemList()); if (moveto) { + selection->clear(); sp_selection_change_layer_maintain_clones(items,moveto); std::vector<Inkscape::XML::Node*> temp_clip; sp_selection_copy_impl(items, temp_clip, dt->doc()->getReprDoc()); // we're in the same doc, so no need to copy defs |
