From 2ec73f752d2f9343991bb8fb904184dfb56e3734 Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 24 Mar 2008 11:28:22 +0000 Subject: [PATCH] Fix of IPAL19343(Cut Lines Definition: SIGSEGV at changinh the number of planes). --- src/VISUGUI/VisuGUI_CutLinesDlg.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ); -- 2.39.2