diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-05-08 23:05:06 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-05-08 23:05:06 +0000 |
| commit | 7cb183695ed9eec9fb3e08045e4a265d10eca76e (patch) | |
| tree | 3e7d6f95aa0ac7c72d146ce3f4959a21cdea836a /src/sp-clippath.cpp | |
| parent | fixes various bugs with clipping and masking (diff) | |
| download | inkscape-7cb183695ed9eec9fb3e08045e4a265d10eca76e.tar.gz inkscape-7cb183695ed9eec9fb3e08045e4a265d10eca76e.zip | |
refactor sp_selection_set_mask
(bzr r14131)
Diffstat (limited to 'src/sp-clippath.cpp')
| -rw-r--r-- | src/sp-clippath.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp index 0c13ca80d..d66508eae 100644 --- a/src/sp-clippath.cpp +++ b/src/sp-clippath.cpp @@ -296,7 +296,7 @@ sp_clippath_view_list_remove(SPClipPathView *list, SPClipPathView *view) } // Create a mask element (using passed elements), add it to <defs> -const gchar *SPClipPath::create (GSList *reprs, SPDocument *document, Geom::Affine const* applyTransform) +const gchar *SPClipPath::create (std::vector<Inkscape::XML::Node*> &reprs, SPDocument *document, Geom::Affine const* applyTransform) { Inkscape::XML::Node *defsrepr = document->getDefs()->getRepr(); @@ -308,8 +308,8 @@ const gchar *SPClipPath::create (GSList *reprs, SPDocument *document, Geom::Affi const gchar *id = repr->attribute("id"); SPObject *clip_path_object = document->getObjectById(id); - for (GSList *it = reprs; it != NULL; it = it->next) { - Inkscape::XML::Node *node = (Inkscape::XML::Node *)(it->data); + for (std::vector<Inkscape::XML::Node*>::const_iterator it = reprs.begin(); it != reprs.end(); it++) { + Inkscape::XML::Node *node = (*it); SPItem *item = SP_ITEM(clip_path_object->appendChildRepr(node)); if (NULL != applyTransform) { |
