]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
21680: EDF 2288 SMESH: creation of 0D elements from other elements
authoreap <eap@opencascade.com>
Tue, 23 Oct 2012 07:49:29 +0000 (07:49 +0000)
committereap <eap@opencascade.com>
Tue, 23 Oct 2012 07:49:29 +0000 (07:49 +0000)
   fix SMESHGUI_FilterTable::Init (const QList<int>& theTypes) for the
   case of theTypes.count() > 1

src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 34947420da9c4169666e2be48e8295c4cdeef8d3..108f7bed5e24780e97ff32670d68faba6248ebfb 100755 (executable)
@@ -1002,6 +1002,17 @@ void SMESHGUI_FilterTable::Init (const QList<int>& theTypes)
 
     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
   const QMap<int, QString>& aSupportedTypes = getSupportedTypes();