summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-21 23:33:24 +0000
committerJabiertxof <jtx@jtx>2017-01-21 23:33:24 +0000
commiteeb5405c1b2734322ca9ed506e8a8e16a87c2a4f (patch)
tree5f98cdb1ee5633b69ec1f5c21d0d5e69f8770ad2 /src/sp-tref.cpp
parentOrganize doeffect function (diff)
parentFix "swap fill and stroke" for multiple objects in selection (diff)
downloadinkscape-eeb5405c1b2734322ca9ed506e8a8e16a87c2a4f.tar.gz
inkscape-eeb5405c1b2734322ca9ed506e8a8e16a87c2a4f.zip
Update to trunk
(bzr r13645.1.165)
Diffstat (limited to 'src/sp-tref.cpp')
-rw-r--r--src/sp-tref.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp
index ba592058b..e25ddb5a4 100644
--- a/src/sp-tref.cpp
+++ b/src/sp-tref.cpp
@@ -22,14 +22,9 @@
#include "document.h"
#include "sp-factory.h"
#include "sp-text.h"
-#include "sp-tspan.h"
#include "sp-tref.h"
#include "style.h"
#include "text-editing.h"
-#include "uri.h"
-
-#include "xml/node.h"
-#include "xml/repr.h"
//#define DEBUG_TREF
#ifdef DEBUG_TREF
@@ -506,9 +501,9 @@ sp_tref_convert_to_tspan(SPObject *obj)
////////////////////
else {
GSList *l = NULL;
- for (SPObject *child = obj->firstChild() ; child != NULL ; child = child->getNext() ) {
- sp_object_ref(child, obj);
- l = g_slist_prepend (l, child);
+ for (auto& child: obj->children) {
+ sp_object_ref(&child, obj);
+ l = g_slist_prepend (l, &child);
}
l = g_slist_reverse (l);
while (l) {