ide/Designer: Fixed bug introduced by 302ffd77aab8695d403b1557ee6bf8ffd8fc7aad
authorJerome St-Louis <jerome@ecere.com>
Wed, 26 Mar 2014 17:16:37 +0000 (13:16 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 26 Mar 2014 17:16:37 +0000 (13:16 -0400)
ide/src/designer/CodeEditor.ec

index 268be92..5111d7f 100644 (file)
@@ -3407,9 +3407,9 @@ class CodeEditor : Window
                                                                                     }
                                                                                     break;
                                                                                  case constantExp:
-                                                                                    if(computed.isConstant)
+                                                                                    if(!isClass && computed.isConstant)
                                                                                     {
-                                                                                       if((!propertyClass.dataTypeString || strcmp(propertyClass.dataTypeString, "char *")))
+                                                                                       if(!propertyClass.dataTypeString)
                                                                                        {
                                                                                           if(!strcmp(propertyClass.dataTypeString, "float"))
                                                                                              ((void (*)(void *, float))(void *)prop.Set)(control, (float)strtod(computed.constant, null));