]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/elements/CanvasText.cxx
First working version of DOM like Canvas event handling
[simgear.git] / simgear / canvas / elements / CanvasText.cxx
index fdaa7895a6c7b9d45894f5a01d9c51242d0a6ec3..3e5d78531cf71c3bfff0124c032894cd8b3b756c 100644 (file)
@@ -19,7 +19,7 @@
 #include "CanvasText.hxx"
 #include <simgear/canvas/Canvas.hxx>
 #include <simgear/canvas/CanvasSystemAdapter.hxx>
-#include <simgear/misc/parse_color.hxx>
+#include <simgear/scene/util/parse_color.hxx>
 #include <osgText/Text>
 
 namespace simgear
@@ -176,9 +176,10 @@ namespace canvas
 
   //----------------------------------------------------------------------------
   Text::Text( const CanvasWeakPtr& canvas,
-              SGPropertyNode_ptr node,
-              const Style& parent_style ):
-    Element(canvas, node, parent_style),
+              const SGPropertyNode_ptr& node,
+              const Style& parent_style,
+              Element* parent ):
+    Element(canvas, node, parent_style, parent),
     _text( new Text::TextOSG(this) )
   {
     setDrawable(_text);