- 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);
- }