summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2015-05-02 09:43:24 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2015-05-02 09:43:24 +0000
commit4ae263b8d394775ff631efaacc835346af1ffdae (patch)
tree8c54527cb2698ade852a3286e84692fc29b74ad8 /src/gradient-drag.cpp
parentmerged gtk3 compile fix (diff)
parentsp-text: Whitespace cleanup (diff)
downloadinkscape-4ae263b8d394775ff631efaacc835346af1ffdae.tar.gz
inkscape-4ae263b8d394775ff631efaacc835346af1ffdae.zip
merge with trunk
(bzr r14059.1.12)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index cb2bd737f..169710114 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -2082,9 +2082,9 @@ void GrDrag::updateDraggers()
this->draggers = NULL;
g_return_if_fail(this->selection != NULL);
-
- for (GSList const* i = this->selection->itemList(); i != NULL; i = i->next) {
- SPItem *item = SP_ITEM(i->data);
+ std::vector<SPItem*> list = this->selection->itemList();
+ for (std::vector<SPItem*>::const_iterator i = list.begin(); i != list.end(); i++) {
+ SPItem *item = *i;
SPStyle *style = item->style;
if (style && (style->fill.isPaintserver())) {
@@ -2151,9 +2151,9 @@ void GrDrag::updateLines()
g_return_if_fail(this->selection != NULL);
- for (GSList const* i = this->selection->itemList(); i != NULL; i = i->next) {
-
- SPItem *item = SP_ITEM(i->data);
+ std::vector<SPItem*> list = this->selection->itemList();
+ for (std::vector<SPItem*>::const_iterator i = list.begin(); i != list.end(); i++) {
+ SPItem *item = *i;
SPStyle *style = item->style;
@@ -2295,8 +2295,9 @@ void GrDrag::updateLevels()
g_return_if_fail (this->selection != NULL);
- for (GSList const* i = this->selection->itemList(); i != NULL; i = i->next) {
- SPItem *item = SP_ITEM(i->data);
+ std::vector<SPItem*> list = this->selection->itemList();
+ for (std::vector<SPItem*>::const_iterator i = list.begin(); i != list.end(); i++) {
+ SPItem *item = *i;
Geom::OptRect rect = item->desktopVisualBounds();
if (rect) {
// Remember the edges of the bbox and the center axis