]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for IPAL19590: Qt4 porting: Segmentation violation at Modification - add Quadrati...
authormkr <mkr@opencascade.com>
Tue, 29 Apr 2008 13:58:41 +0000 (13:58 +0000)
committermkr <mkr@opencascade.com>
Tue, 29 Apr 2008 13:58:41 +0000 (13:58 +0000)
src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx

index 52458d5354b9ca86ef7f534bae12593d9d7c772c..94db73192aaf78d6ec41ce4910440c1823e4aca7 100644 (file)
@@ -549,9 +549,13 @@ void SMESHGUI_AddQuadraticElementDlg::Init()
   
   for ( int row = 0; row < myTable->rowCount(); row++ )
   {
+    myTable->setItem( row, 0, new QTableWidgetItem( "" ) );
+
     SMESHGUI_IdEditItem* anEditItem = new SMESHGUI_IdEditItem( "" );
     anEditItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled);
     myTable->setItem(row, 1, anEditItem);
+
+    myTable->setItem( row, 2, new QTableWidgetItem( "" ) );
   }
   
   /* signals and slots connections */