]> git.mxchange.org Git - simgear.git/commit
Canvas: Fix removing text elements.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 4 Jul 2013 12:11:54 +0000 (14:11 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 4 Jul 2013 12:11:54 +0000 (14:11 +0200)
commitd0ff1447539c28ac644a923f6f47abe886da94fe
tree1f244f7a5b75c530cc98e3f06d5c52a4b5d1c2e0
parent943efbb3ed37afda79a761a643030647e85278c0
Canvas: Fix removing text elements.

Removing text elements failed due to prefering removing the
style property with the same name. Add a flag to each style
indicating whether it can be inherited. The text property
is only applicable to text elements and can not be inherited.
Now groups can not have a text property, avoiding the name
clash with the text element.
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx
simgear/canvas/elements/CanvasGroup.cxx
simgear/canvas/elements/CanvasGroup.hxx
simgear/canvas/elements/CanvasText.cxx