From: Thomas Geymayer Date: Thu, 18 Jul 2013 12:15:57 +0000 (+0200) Subject: canvas::Element: Fix bounding box calculation of groups X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2f89978ffeeca516024b2d6936252ff56d3aab2;p=simgear.git canvas::Element: Fix bounding box calculation of groups --- diff --git a/simgear/canvas/elements/CanvasElement.cxx b/simgear/canvas/elements/CanvasElement.cxx index a1271169..2cf4467d 100644 --- a/simgear/canvas/elements/CanvasElement.cxx +++ b/simgear/canvas/elements/CanvasElement.cxx @@ -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; }