diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-05-06 22:39:26 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-05-06 22:39:26 +0000 |
| commit | fe6f8f1b7976197de20964be02e594d058aead84 (patch) | |
| tree | 40a7b59fdefcc07d4f2b90601f446a1dd49630ca /src/selection-chemistry.cpp | |
| parent | fix crash due to logic error in Selection::_removeObjectDescendants (diff) | |
| download | inkscape-fe6f8f1b7976197de20964be02e594d058aead84.tar.gz inkscape-fe6f8f1b7976197de20964be02e594d058aead84.zip | |
"select same..." no longer returns groups.
(bzr r14118)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index f444f4217..7a5c2c2d5 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1837,6 +1837,15 @@ void sp_select_same_fill_stroke_style(SPDesktop *desktop, gboolean fill, gboolea Inkscape::Selection *selection = desktop->getSelection(); std::vector<SPItem*> items = selection->itemList(); + + std::vector<SPItem*> tmp; + for (std::vector<SPItem*>::const_iterator iter=all_list.begin();iter!=all_list.end();iter++) { + if(!SP_IS_GROUP(*iter)){ + tmp.push_back(*iter); + } + } + all_list=tmp; + for (std::vector<SPItem*>::const_iterator sel_iter=items.begin();sel_iter!=items.end();sel_iter++) { SPItem *sel = *sel_iter; std::vector<SPItem*> matches = all_list; |
