bug on RenderedStringParser processing `[' at the end of str

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

zaexage
Just popping in
Just popping in
Posts: 15
Joined: Wed Mar 02, 2011 02:43

bug on RenderedStringParser processing `[' at the end of str

Postby zaexage » Wed Mar 02, 2011 03:28

it seems that the parser will drop the last section if the to-be-parsed string is ended with a `['
e.g.: hello world\[

The parse() function will detect the last `[', but do nothing and try to continue to find more content with advancing curr_pos by 1.
As this `[' is the last character in string, the loop in parse() will terminate and the content will be lost;

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: bug on RenderedStringParser processing `[' at the end of

Postby CrazyEddie » Wed Mar 02, 2011 08:11

Thanks for this, looks like a good one! I will look into it.

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 6 guests