]> Shamusworld >> Repos - architektonas/blobdiff - src/base/entitycontainer.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / base / entitycontainer.cpp
index ec5840fb906d91896914db8cd22d471980941138..dc247e76ba736cce38e44cdb1201b0a927aed9c4 100644 (file)
@@ -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);
+       //}
 }
 
 /**