]> git.mxchange.org Git - simgear.git/commitdiff
canvas::Element: Fix bounding box calculation of groups
authorThomas Geymayer <tomgey@gmail.com>
Thu, 18 Jul 2013 12:15:57 +0000 (14:15 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 18 Jul 2013 12:16:13 +0000 (14:16 +0200)
simgear/canvas/elements/CanvasElement.cxx

index a12711691770db7fb5aa849cda230ebe93447bc8..2cf4467d4fa3eaa93c32e4b8145b8b72fa905ce4 100644 (file)
@@ -488,7 +488,7 @@ namespace canvas
     osg::BoundingBox transformed;
     const osg::BoundingBox& bb = _drawable->getBound();
     for(int i = 0; i < 4; ++i)
-      transformed.expandBy( m * bb.corner(i) );
+      transformed.expandBy( bb.corner(i) * m );
 
     return transformed;
   }