]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1904: Nullify values on change field type
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 29 Dec 2016 07:44:41 +0000 (10:44 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 29 Dec 2016 07:44:41 +0000 (10:44 +0300)
src/CollectionPlugin/CollectionPlugin_WidgetField.cpp

index 8e0f85d42ac04a094fa4c643e977d49aec9f37f1..a9e83048fa02522ff5c7a4d0f027ffce77490b2e 100644 (file)
@@ -876,10 +876,7 @@ void CollectionPlugin_WidgetField::onFieldTypeChanged(int theIdx)
           switch (theIdx) {
           case ModelAPI_AttributeTables::DOUBLE:
           case ModelAPI_AttributeTables::INTEGER:
-            if ((aOldType == ModelAPI_AttributeTables::BOOLEAN) ||
-                (aOldType == ModelAPI_AttributeTables::STRING)) {
-                  aTable->item(j, i)->setText("0");
-            }
+            aTable->item(j, i)->setText("0");
             break;
           case ModelAPI_AttributeTables::BOOLEAN:
             aTable->item(j, i)->setText(MYFalse);