X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fentitycontainer.cpp;h=dc247e76ba736cce38e44cdb1201b0a927aed9c4;hb=5adb444f3e523d3fd028617ced72d1ea6661db21;hp=ec5840fb906d91896914db8cd22d471980941138;hpb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;p=architektonas diff --git a/src/base/entitycontainer.cpp b/src/base/entitycontainer.cpp index ec5840f..dc247e7 100644 --- a/src/base/entitycontainer.cpp +++ b/src/base/entitycontainer.cpp @@ -473,22 +473,22 @@ void EntityContainer::adjustBorders(Entity * entity) //DEBUG->print("EntityContainer::adjustBorders"); //resetBorders(); - if (entity != NULL) - { - // make sure a container is not empty (otherwise the border - // would get extended to 0/0): - if (!entity->isContainer() || entity->count() > 0) - { - minV = Vector::minimum(entity->getMin(), minV); - maxV = Vector::maximum(entity->getMax(), maxV); - } + if (entity == NULL) + return; - // Notify parents. The border for the parent might - // also change TODO: Check for efficiency - //if(parent!=NULL) { - //parent->adjustBorders(this); - //} + // make sure a container is not empty (otherwise the border + // would get extended to 0/0): + if (!entity->isContainer() || entity->count() > 0) + { + minV = Vector::minimum(entity->getMin(), minV); + maxV = Vector::maximum(entity->getMax(), maxV); } + + // Notify parents. The border for the parent might + // also change TODO: Check for efficiency + //if(parent!=NULL) { + //parent->adjustBorders(this); + //} } /**