From: ouv Date: Tue, 22 Nov 2005 11:34:50 +0000 (+0000) Subject: Fixed bug GVIEW10591 : segmentation plane with null normal X-Git-Tag: BR-D5-38-2003_D2005-24-11~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7330adc4b905a6c4189402beb6b87885ed593dca;p=modules%2Fvisu.git Fixed bug GVIEW10591 : segmentation plane with null normal --- diff --git a/src/VVTK/VVTK_SegmentationCursorDlg.cxx b/src/VVTK/VVTK_SegmentationCursorDlg.cxx index d47df005..bfc710ce 100644 --- a/src/VVTK/VVTK_SegmentationCursorDlg.cxx +++ b/src/VVTK/VVTK_SegmentationCursorDlg.cxx @@ -505,6 +505,12 @@ void VVTK_SegmentationCursorDlg::ApplySegmentationCursor() normal[0] = myDXDirectionSpinBox->value(); normal[1] = myDYDirectionSpinBox->value(); normal[2] = myDZDirectionSpinBox->value(); + + if( normal[0] == 0.0 && normal[1] == 0.0 && normal[2] == 0.0 ) + { + normal[2] = 1.0; + myDZDirectionSpinBox->setValue( 1.0 ); + } myWidget->SetNormal( normal ); myWidget->SetDistance( myDepthSpinBox->value() );