From: mkr Date: Tue, 29 Apr 2008 13:58:41 +0000 (+0000) Subject: Fix for IPAL19590: Qt4 porting: Segmentation violation at Modification - add Quadrati... X-Git-Tag: V5_1_0a1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c72fdd558620e68c90d96283a386873b5d0c1a7;p=modules%2Fsmesh.git Fix for IPAL19590: Qt4 porting: Segmentation violation at Modification - add Quadratic Tetrahedron. --- diff --git a/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx b/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx index 52458d535..94db73192 100644 --- a/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx @@ -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 */