Layout editor terminates with invalid Spinner text

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

wally
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 09, 2008 09:45
Location: Canberra, Australia

Layout editor terminates with invalid Spinner text

Postby wally » Thu Feb 19, 2009 01:32

CEGUI layout editor 0.6.2.

Entering invalid number (e.g. the letter "k") in the Text field for a Spinner element terminates the editor, reporting an exception

Code: Select all

19/02/2009 12:27:12 (Error)   CEGUI::InvalidRequestException in file \Temp\CEGUI-0.6.2-vc7\src\elements\CEGUISpinner.cpp(257) : Spinner::getValueFromText - The string 'k' can not be converted to numerical representation.
19/02/2009 12:27:12 (Error)   CELayoutEditor has detected and caught an exception. The following detailed info is available:

Description: CELayoutEditor has encountered an unhandled CEGUI exception and needs to terminate.
Exception Location: CELayoutEditor::ProcessUnhandledException
Exception Message: Spinner::getValueFromText - The string 'k' can not be converted to numerical representation.
Exception Filename: \Temp\CEGUI-0.6.2-vc7\src\elements\CEGUISpinner.cpp
Exception Line: 257


This is fairly minor, as you have to somehow enter non-numeric text in there either accidentally or because you don't initially realise what it relates to. It also gives you the option of saving before it shuts down, which is helpful (didn't actually try it). But could still be occasionally annoying.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Thu Feb 19, 2009 11:41

Hi,

thanks for reporting this. It's pretty unusual to happen indeed, but i will wrap it between a try-catch. This is the ticket:
http://www.cegui.org.uk/mantis/view.php?id=278
Check out my released snake game using Cegui!


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 12 guests