]> git.mxchange.org Git - simgear.git/commit
Canvas: Ensure all element types are initialized before first usage.
authorThomas Geymayer <tomgey@gmail.com>
Sat, 20 Jul 2013 13:45:02 +0000 (15:45 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 20 Jul 2013 13:45:02 +0000 (15:45 +0200)
commitb2368216618c5742fd29040b24a83e0b10bef06e
tree6fdac2fc8436f319f3780fbf2602a2f85d7bed65
parentfc75b0bd21ad9fd1093ffdb944b8ccd4404ef64f
Canvas: Ensure all element types are initialized before first usage.

If setting properties on a group a check is performed if
this property exists on any possible child element, and
only if this is the case the property is stored in the
groups style.

Previously elements have been only initialized during
their first usage, leading to ignored styles if they
have been set on a parent element before instantiating
an instance of the actual element type.
12 files changed:
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx
simgear/canvas/elements/CanvasGroup.cxx
simgear/canvas/elements/CanvasGroup.hxx
simgear/canvas/elements/CanvasImage.cxx
simgear/canvas/elements/CanvasImage.hxx
simgear/canvas/elements/CanvasMap.cxx
simgear/canvas/elements/CanvasMap.hxx
simgear/canvas/elements/CanvasPath.cxx
simgear/canvas/elements/CanvasPath.hxx
simgear/canvas/elements/CanvasText.cxx
simgear/canvas/elements/CanvasText.hxx