//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);
+ //}
}
/**