From: vsv Date: Thu, 29 Dec 2016 07:44:41 +0000 (+0300) Subject: Issue #1904: Nullify values on change field type X-Git-Tag: V_2.7.0~351^2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7502992e4b6bb1ee50dbb8dd0443e44cc0595c84;p=modules%2Fshaper.git Issue #1904: Nullify values on change field type --- diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index 8e0f85d42..a9e83048f 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -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);