21680: EDF 2288 SMESH: creation of 0D elements from other elements

fix SMESHGUI_FilterTable::Init (const QList<int>& theTypes) for the
   case of theTypes.count() > 1
This commit is contained in:
eap 2012-10-23 07:49:29 +00:00
parent c7ed8139b4
commit 9aa7dd10a4

View File

@ -1002,6 +1002,17 @@ void SMESHGUI_FilterTable::Init (const QList<int>& theTypes)
myLibDlg = 0; myLibDlg = 0;
} }
else
{
QList<int>::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 // Hide buttons of entity types if necessary
const QMap<int, QString>& aSupportedTypes = getSupportedTypes(); const QMap<int, QString>& aSupportedTypes = getSupportedTypes();