summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 02:10:36 +0000
committerMarc Jeanmougin <mc@localhost.localdomain>2015-02-27 02:10:36 +0000
commit9a7fa4d1899d30ec745107823f307b2a0bf3172f (patch)
tree216bd7b47a96425af53642e2c3869a70ebfa23e5 /src/gradient-chemistry.cpp
parentshould replace buggy pot file (diff)
downloadinkscape-9a7fa4d1899d30ec745107823f307b2a0bf3172f.tar.gz
inkscape-9a7fa4d1899d30ec745107823f307b2a0bf3172f.zip
corrected the casts (hopefully)
(bzr r13922.1.10)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index a72423bbb..b59b38475 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -1571,8 +1571,8 @@ void sp_gradient_invert_selected_gradients(SPDesktop *desktop, Inkscape::PaintTa
Inkscape::Selection *selection = desktop->getSelection();
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);
+ for (std::vector<SPItem*>::const_iterator i = list.begin(); i != list.end(); i++) {
+ sp_item_gradient_invert_vector_color(*i, fill_or_stroke);
}
// we did an undoable action
@@ -1596,9 +1596,9 @@ void sp_gradient_reverse_selected_gradients(SPDesktop *desktop)
drag->selected_reverse_vector();
} else { // If no drag or no dragger selected, act on selection (both fill and stroke gradients)
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);
+ for (std::vector<SPItem*>::const_iterator i = list.begin(); i != list.end(); i++) {
+ sp_item_gradient_reverse_vector(*i, Inkscape::FOR_FILL);
+ sp_item_gradient_reverse_vector(*i, Inkscape::FOR_STROKE);
}
}