Fix from Gabor for proper casting of char's to unsigned ints be setting up the

osgText::String.
This commit is contained in:
Robert Osfield
2003-03-12 15:36:26 +00:00
parent c0b3bb1f32
commit 3343c3a970

View File

@@ -254,7 +254,11 @@ String& String::operator = (const String& str)
void String::set(const std::string& text)
{
clear();
std::copy(text.begin(),text.end(),std::back_inserter(*this));
for ( std::string::const_iterator it = text.begin(); it != text.end(); ++it )
{
unsigned int charcode = (unsigned char )*it;
push_back( charcode );
}
}
void String::set(const wchar_t* text)