]> git.mxchange.org Git - simgear.git/commitdiff
Revert "CanvasGroup: return empty bounding box without children."
authorThomas Geymayer <tomgey@gmail.com>
Sun, 23 Mar 2014 16:01:02 +0000 (17:01 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 23 Mar 2014 16:27:30 +0000 (17:27 +0100)
Returning somehow valid data in case it is used unchecked was
probably not a good idea. Better fix the code using it^^

This fixes #1421.

This reverts commit 3525fff8d079538cb36c506b01fdb10128f7c187.

simgear/canvas/elements/CanvasGroup.cxx

index 3e284f122c505a9b84b055a2220010ff39a40b77..51523f426f2391afe196401b201e3847fc3ea6e3 100644 (file)
@@ -220,10 +220,7 @@ namespace canvas
   //----------------------------------------------------------------------------
   osg::BoundingBox Group::getTransformedBounds(const osg::Matrix& m) const
   {
-    // Default to a bounding box with size 0x0 and the origin defined by the
-    // matrix.
-    osg::BoundingBox bb(m.getTrans(), m.getTrans());
-
+    osg::BoundingBox bb;
     if( !_transform.valid() )
     {
       warnTransformExpired("getTransformedBounds");