Page 1 of 1

Layout editor terminates with invalid Spinner text

Posted: Thu Feb 19, 2009 01:32
by wally
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.

Posted: Thu Feb 19, 2009 11:41
by scriptkid
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