]> git.mxchange.org Git - simgear.git/commit
CanvasGroup: return empty bounding box without children.
authorThomas Geymayer <tomgey@gmail.com>
Wed, 19 Mar 2014 15:31:17 +0000 (16:31 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 19 Mar 2014 15:31:17 +0000 (16:31 +0100)
commit3525fff8d079538cb36c506b01fdb10128f7c187
treee24cf16d22b55c249909296318ede3a67207917e
parent6c75e2fe3c4ad87479d354e6ae993c80382c7d7f
CanvasGroup: return empty bounding box without children.

Return an invalid bounding box can lead to problems
if used unchecked. Just returning an empty bounding
box (size 0x0 and position at the origin of the
element) is much safer.
simgear/canvas/elements/CanvasGroup.cxx