From: mpa Date: Mon, 18 Jan 2016 13:55:45 +0000 (+0300) Subject: INT PAL 0053060: Preview in clipping X-Git-Tag: V8_0_0rc1~5^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=d1ed915c6868c000dc9125ac68641c92c0961349 INT PAL 0053060: Preview in clipping --- diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx index d38e638ca..c02181bee 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -1134,9 +1134,10 @@ void SMESHGUI_ClippingDlg::updateActorItem( QListWidgetItem* theItem, anActorList.remove( anActor ); if( SMESH::ComputeBounds( anActorList, myBounds ) ) { - myPreviewWidget->On(); myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2], myBounds[3], myBounds[4], myBounds[5] ); + if( PreviewCheckBox->isChecked() ) + myPreviewWidget->On(); } else myPreviewWidget->Off(); @@ -1249,9 +1250,10 @@ void SMESHGUI_ClippingDlg::ClickOnNew() bool anIsBlocked = ActorList->blockSignals( true ); if( SMESH::ComputeBounds( anActorList, myBounds ) ) { - myPreviewWidget->On(); myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2], myBounds[3], myBounds[4], myBounds[5] ); + if( PreviewCheckBox->isChecked() ) + myPreviewWidget->On(); } else myPreviewWidget->Off(); @@ -1342,9 +1344,10 @@ void SMESHGUI_ClippingDlg::onSelectPlane ( int theIndex ) myIsSelectPlane = false; if( SMESH::ComputeBounds( aPlaneData.ActorList, myBounds ) ) { - myPreviewWidget->On(); myPreviewWidget->PlaceWidget( myBounds[0], myBounds[1], myBounds[2], myBounds[3], myBounds[4], myBounds[5] ); + if( PreviewCheckBox->isChecked() ) + myPreviewWidget->On(); } else myPreviewWidget->Off();