PropertyHelper::imageToString and some chars like 'spaces'
Posted: Sat Oct 25, 2008 18:32
Hi,
I'm trying to set an image to a panel based on a render to texture. So everything is working right except for the fact that I can't create the texture with a name that contains spaces or other special chars. This line is the problem:
the variable "someName" has spaces, and for that it's being truncated. Is there any way to solve this without replacing the all spaces with any other character?
I'm trying to set an image to a panel based on a render to texture. So everything is working right except for the fact that I can't create the texture with a name that contains spaces or other special chars. This line is the problem:
Code: Select all
component->setProperty("Image", CEGUI::PropertyHelper::imageToString(&someImageSet->getImage( ("SomeImageset_"+std::string(someName)).c_str() )));
the variable "someName" has spaces, and for that it's being truncated. Is there any way to solve this without replacing the all spaces with any other character?