ide/Designer: Correction to fix in last commit
authorJerome St-Louis <jerome@ecere.com>
Wed, 26 Mar 2014 17:59:17 +0000 (13:59 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 26 Mar 2014 17:59:17 +0000 (13:59 -0400)
ide/src/designer/CodeEditor.ec

index 5111d7f..fa4babf 100644 (file)
@@ -3409,16 +3409,13 @@ class CodeEditor : Window
                                                                                  case constantExp:
                                                                                     if(!isClass && computed.isConstant)
                                                                                     {
-                                                                                       if(!propertyClass.dataTypeString)
-                                                                                       {
-                                                                                          if(!strcmp(propertyClass.dataTypeString, "float"))
-                                                                                             ((void (*)(void *, float))(void *)prop.Set)(control, (float)strtod(computed.constant, null));
-                                                                                          else if(!strcmp(propertyClass.dataTypeString, "double"))
-                                                                                             ((void (*)(void *, double))(void *)prop.Set)(control, strtod(computed.constant, null));
-                                                                                          else
-                                                                                             ((void (*)(void *, int))(void *)prop.Set)(control, strtol(computed.constant, null, 0));
-                                                                                          variable = false;
-                                                                                       }
+                                                                                       if(!strcmp(propertyClass.dataTypeString, "float"))
+                                                                                          ((void (*)(void *, float))(void *)prop.Set)(control, (float)strtod(computed.constant, null));
+                                                                                       else if(!strcmp(propertyClass.dataTypeString, "double"))
+                                                                                          ((void (*)(void *, double))(void *)prop.Set)(control, strtod(computed.constant, null));
+                                                                                       else
+                                                                                          ((void (*)(void *, int))(void *)prop.Set)(control, strtol(computed.constant, null, 0));
+                                                                                       variable = false;
                                                                                     }
                                                                                     break;
                                                                               }