summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-08-21 21:54:57 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-08-21 21:54:57 +0000
commit584f35dcc621f5877732cf310c310570c021c31d (patch)
tree6dd2b5612d3a41949ca87828c7cf27713e059675 /src/sp-item.cpp
parentNot sure about this changes :( (diff)
parentindentation and whitespace fixes (diff)
downloadinkscape-584f35dcc621f5877732cf310c310570c021c31d.tar.gz
inkscape-584f35dcc621f5877732cf310c310570c021c31d.zip
update to trunk
(bzr r13645.1.108)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp4
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);
}
}