]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of IPAL19343(Cut Lines Definition: SIGSEGV at changinh the number of planes).
authorakl <akl@opencascade.com>
Mon, 24 Mar 2008 11:28:22 +0000 (11:28 +0000)
committerakl <akl@opencascade.com>
Mon, 24 Mar 2008 11:28:22 +0000 (11:28 +0000)
src/VISUGUI/VisuGUI_CutLinesDlg.cxx

index 35b3e064356b00026bcd4fe130d175d78cc73b78..56c94a8580eb6a5b1f190d2e92634714cfff95c8 100644 (file)
@@ -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() );