diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2015-04-25 13:02:27 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2015-04-25 13:02:27 +0000 |
| commit | 8630ce66ac9ae4bf8599e766f7fe8bcddb8fb5e2 (patch) | |
| tree | f26a2bac13aee5ecf2f70fb185d09e45e81e6d5e /src/sp-pattern.cpp | |
| parent | merged SPPattern c++-sification from svgpaints branch (diff) | |
| parent | fixed possible bug SPPattern::_get_children (diff) | |
| download | inkscape-8630ce66ac9ae4bf8599e766f7fe8bcddb8fb5e2.tar.gz inkscape-8630ce66ac9ae4bf8599e766f7fe8bcddb8fb5e2.zip | |
fixed possible bug SPPattern::_get_children
(bzr r14059.1.3)
Diffstat (limited to 'src/sp-pattern.cpp')
| -rw-r--r-- | src/sp-pattern.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sp-pattern.cpp b/src/sp-pattern.cpp index df8086ae7..7da63213b 100644 --- a/src/sp-pattern.cpp +++ b/src/sp-pattern.cpp @@ -207,10 +207,9 @@ void SPPattern::set(unsigned int key, const gchar* value) { /* fixme: We need ::order_changed handler too (Lauris) */ void SPPattern::_get_children(std::list<SPObject*>& l) { - SPPattern *pat = this; - for (SPPattern *pat_i = pat; pat_i != NULL; pat_i = pat_i->ref ? pat_i->ref->getObject() : NULL) { + for (SPPattern *pat_i = this; pat_i != NULL; pat_i = pat_i->ref ? pat_i->ref->getObject() : NULL) { if (pat_i->firstChild()) { // find the first one with children - for (SPObject *child = pat->firstChild() ; child ; child = child->getNext() ) { + for (SPObject *child = pat_i->firstChild() ; child ; child = child->getNext() ) { l.push_back(child); } break; // do not go further up the chain if children are found |
