diff --git a/include/osgText/Text b/include/osgText/Text index e0e82446e..1ffeae8ea 100644 --- a/include/osgText/Text +++ b/include/osgText/Text @@ -216,7 +216,7 @@ public: KerningType getKerningType() const { return _kerningType; } /** Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise */ - unsigned int getLineCount() { return _lineCount; } + unsigned int getLineCount() const { return _lineCount; } /** Draw the text.*/ virtual void drawImplementation(osg::State& state) const;