From c8752d6c18db57ca6f8bd9fcec19470f7990a435 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 5 Jan 2009 11:31:38 +0000 Subject: [PATCH] From Cedric Pinson, added non const getText() method --- include/osgWidget/Label | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osgWidget/Label b/include/osgWidget/Label index 0cf5e40e6..edda4b5cc 100644 --- a/include/osgWidget/Label +++ b/include/osgWidget/Label @@ -47,8 +47,8 @@ class OSGWIDGET_EXPORT Label: public Widget void setFontColor(point_type r, point_type g, point_type b, point_type a) { setFontColor(Color(r, g, b, a)); } - // For now you only get a const pointer, because we have a highly specific - // interface with the osgText library. + osgText::Text* getText() { return _text.get(); } + const osgText::Text* getText() const { return _text.get(); } protected: