summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <mc>2015-02-19 03:25:21 +0000
committerMarc Jeanmougin <mc>2015-02-19 03:25:21 +0000
commit5fd00cab14d48beaf2279a2b8f3ad5b02b76c87b (patch)
treeff77bac142c02624cbdfaa2ebd01422e8697205a /src/gradient-chemistry.cpp
parentI can't really understand why, but i can now launch inkscape without it segfa... (diff)
downloadinkscape-5fd00cab14d48beaf2279a2b8f3ad5b02b76c87b.tar.gz
inkscape-5fd00cab14d48beaf2279a2b8f3ad5b02b76c87b.zip
Put a few std::vector<SPitem*>
(bzr r13922.1.5)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 5f1da6cf1..a72423bbb 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -1570,8 +1570,8 @@ void sp_gradient_invert_selected_gradients(SPDesktop *desktop, Inkscape::PaintTa
{
Inkscape::Selection *selection = desktop->getSelection();
- const SelContainer list=selection->itemList();
- for (SelContainer::const_iterator i=list.begin();i!=list.end();i++) {
+ const std::vector<SPItem*> list=selection->itemList();
+ for (std::vector<SPItem*>::const_iterator i=list.begin();i!=list.end();i++) {
sp_item_gradient_invert_vector_color(SP_ITEM(*i), fill_or_stroke);
}
@@ -1595,8 +1595,8 @@ void sp_gradient_reverse_selected_gradients(SPDesktop *desktop)
if (drag && drag->selected) {
drag->selected_reverse_vector();
} else { // If no drag or no dragger selected, act on selection (both fill and stroke gradients)
- const SelContainer list=selection->itemList();
- for (SelContainer::const_iterator i=list.begin();i!=list.end();i++) {
+ const std::vector<SPItem*> list=selection->itemList();
+ for (std::vector<SPItem*>::const_iterator i=list.begin();i!=list.end();i++) {
sp_item_gradient_reverse_vector(SP_ITEM(*i), Inkscape::FOR_FILL);
sp_item_gradient_reverse_vector(SP_ITEM(*i), Inkscape::FOR_STROKE);
}