From 5c72fdd558620e68c90d96283a386873b5d0c1a7 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 29 Apr 2008 13:58:41 +0000 Subject: [PATCH] Fix for IPAL19590: Qt4 porting: Segmentation violation at Modification - add Quadratic Tetrahedron. --- src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.39.2