From Guillaume Taze, "Here are some bugs fix :

- missing copy attribute _referenceFrame in ClipNode in copy constructor
- checked iterators against the end in osgText
- close codec context in ffmpeg plugin to avoid memory leak

"
This commit is contained in:
Robert Osfield
2010-08-16 15:02:04 +00:00
parent 4e967ef3c3
commit 4d1df397e2
3 changed files with 10 additions and 8 deletions

View File

@@ -487,13 +487,9 @@ void Text::computeGlyphRepresentation()
}
}
if (itr!=_text.end())
{
// skip over spaces and return.
while (*itr==' ') ++itr;
if (*itr=='\n') ++itr;
}
// skip over spaces and return.
while (itr != _text.end() && *itr==' ') ++itr;
if (itr != _text.end() && *itr=='\n') ++itr;
}
else
{