X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.cpp;h=be19b0020a9a2680b64e4750690cd288b0b8c1c6;hb=346d933cb7d5d2e016ce235fb4336e202ca7708e;hp=59a23c935aab6be2f3e41c5e53c4e383e3975f14;hpb=05b95b6b6b095821f1e79dabed802b853c296c9d;p=r2c2.git diff --git a/source/3d/layout.cpp b/source/3d/layout.cpp index 59a23c9..be19b00 100644 --- a/source/3d/layout.cpp +++ b/source/3d/layout.cpp @@ -41,7 +41,11 @@ void Layout3D::get_bounds(Vector &minp, Vector &maxp) const Geometry::BoundingBox bbox; for(ObjectMap::const_iterator i=objects.begin(); i!=objects.end(); ++i) - bbox = bbox|i->second->get_object().get_type().get_shape()->get_axis_aligned_bounding_box(); + { + const Shape *shape = i->second->get_object().get_shape(); + if(shape) + bbox = bbox|shape->get_axis_aligned_bounding_box(); + } minp = bbox.get_minimum_point(); maxp = bbox.get_maximum_point();