From 9aa7dd10a441fa191e3ea6a865c8433727786bdf Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 23 Oct 2012 07:49:29 +0000 Subject: [PATCH] 21680: EDF 2288 SMESH: creation of 0D elements from other elements fix SMESHGUI_FilterTable::Init (const QList& theTypes) for the case of theTypes.count() > 1 --- src/SMESHGUI/SMESHGUI_FilterDlg.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index 34947420d..108f7bed5 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1002,6 +1002,17 @@ void SMESHGUI_FilterTable::Init (const QList& theTypes) myLibDlg = 0; } + else + { + QList::const_iterator typeIt = theTypes.begin(); + for ( ; typeIt != theTypes.end(); ++typeIt ) { + if ( !myTables[ *typeIt ] ) { + Table* aTable = createTable(mySwitchTableGrp, *typeIt); + myTables[ *typeIt ] = aTable; + ((QVBoxLayout*)mySwitchTableGrp->layout())->addWidget(myTables[ *typeIt ]); + } + } + } // Hide buttons of entity types if necessary const QMap& aSupportedTypes = getSupportedTypes(); -- 2.39.2