diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-07-29 20:51:14 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-07-29 20:51:14 +0000 |
| commit | ac1d540f5e5dae805c051829fe10e76035238c6c (patch) | |
| tree | 2bb5afdf281f0d1bfa69703ddc4c7fba7c94af13 /src/sp-item.cpp | |
| parent | || (diff) | |
| download | inkscape-ac1d540f5e5dae805c051829fe10e76035238c6c.tar.gz inkscape-ac1d540f5e5dae805c051829fe10e76035238c6c.zip | |
fix for a small warning introduced in r14142 (cf <https://bugs.launchpad.net/inkscape/+bug/1194091/comments/4>)
(bzr r14268)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 410fd9b37..4937e6c76 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -351,8 +351,8 @@ void SPItem::lowerToBottom() { SPObject * bottom=parent->firstChild(); while(dynamic_cast<SPObject*>(bottom) && dynamic_cast<SPObject*>(bottom->next) && bottom!=this && !is_item(*(bottom->next))) bottom=bottom->next; - if (bottom) { - Inkscape::XML::Node *ref = ( bottom ? bottom->getRepr() : NULL ); + if (bottom && bottom != this) { + Inkscape::XML::Node *ref = bottom->getRepr() ; parent->getRepr()->changeOrder(getRepr(), ref); } } |
