From: akl Date: Mon, 24 Mar 2008 11:28:22 +0000 (+0000) Subject: Fix of IPAL19343(Cut Lines Definition: SIGSEGV at changinh the number of planes). X-Git-Tag: V5_0_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ec73f752d2f9343991bb8fb904184dfb56e3734;p=modules%2Fvisu.git Fix of IPAL19343(Cut Lines Definition: SIGSEGV at changinh the number of planes). --- diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 35b3e064..56c94a85 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -413,7 +413,9 @@ int VisuGUI_CutLinesDlg::storeToPrsObject (VISU::ColoredPrs3d_i* thePrs) { for (int i = 0; i < (int)myNbSpn->value(); ++i) { - if ( myPosTable->item( i, 1 )->checkState() != Qt::Checked ) + QTableWidgetItem* aItem = myPosTable->item( i, 1 ); + if (aItem == 0) break; + if (aItem->checkState() != Qt::Checked ) { QVariant aVar = aModel->index( i, 0 ).data(); myPrsCopy->SetLinePosition( i, aVar.toDouble() );