From: azv Date: Wed, 16 Oct 2019 06:33:57 +0000 (+0300) Subject: Issue #3043: Wrong behaviour of selection by filter in a second group X-Git-Tag: V9_5_0a1~167^2~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9eca5a92939203bd226162bf8267e92190fdfb4;p=modules%2Fshaper.git Issue #3043: Wrong behaviour of selection by filter in a second group Initialize the type of selection list with the default value if empty. --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index bb68bed95..0d04aeeb0 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -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;