ADVRHumanoids / XBotGUI

XBot Graphical User Interface for XBot powered robots
3 stars 1 forks source link

XML double parsing #30

Closed alessandrosettimi closed 7 years ago

alessandrosettimi commented 7 years ago

Find out why in some PCs double are correctly parsed with dot separator and in other PCs the comma separator is needed.

alessandrosettimi commented 7 years ago

In c0d59cca0e9c7a03ae1aa00b13399ee0c7a39405 a ccmake flag to switch between commas and dots as decimal separator has been added. If numbers are not properly parsed in the GUI users can toggle the USING_COMMA_AS_DECIMAL_SEPARATOR flag. The idea is to modify it automatically in the cmake when the cause for this different ways of parsing is found.

alessandrosettimi commented 7 years ago

Seems that with 7e91fbe4cfd212b87ff3581e5c8aec34e1dcb191 I forced the dot as decimal separator. See this for more details. In e86fed9595531d66af84ff0362389362bd0ffeef I changed the default for USING_COMMA_AS_DECIMAL_SEPARATOR as false. So now the parsing should work in every PC, the ccmake flag however can be used to toggle the behavior. I close this.