diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index e1bee2915..8ee03a518 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -499,7 +499,8 @@ void Text::computeGlyphRepresentation() if (itr!=_text.end()) { - // skip over return. + // skip over spaces and return. + while (*itr==' ') ++itr; if (*itr=='\n') ++itr; }