]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3043: Wrong behaviour of selection by filter in a second group
authorazv <azv@opencascade.com>
Wed, 16 Oct 2019 06:33:57 +0000 (09:33 +0300)
committervsv <vsv@opencascade.com>
Wed, 6 Nov 2019 08:27:31 +0000 (11:27 +0300)
Initialize the type of selection list with the default value if empty.

src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index bb68bed954b7c4443d72cbd58a709a5c5c9ec2a6..0d04aeeb05866ffe459b3236b464e9a3fa84980b 100644 (file)
@@ -330,7 +330,9 @@ bool ModuleBase_WidgetMultiSelector::restoreValueCustom()
   if (aType == ModelAPI_AttributeSelectionList::typeId()) {
     // Restore shape type
     std::string aSelectionType = aSelectionListAttr->selectionType().c_str();
-    if (!aSelectionType.empty()) {
+    if (aSelectionType.empty())
+      aSelectionListAttr->setSelectionType(myDefMode);
+    else {
       setCurrentShapeType(ModuleBase_Tools::shapeType(aSelectionType.c_str()));
       myDefMode = aSelectionType;
       myIsFirst = false;