OCCViewer_ViewWindow* aMainView = myMainView->getView( OCCViewer_ViewFrame::MAIN_VIEW );
connect( aMainView, SIGNAL( vpTransformationFinished( OCCViewer_ViewWindow::OperationType ) ),
- this, SLOT( OnTransformation() ) );
+ this, SLOT( OnTransformationAfterOp( OCCViewer_ViewWindow::OperationType ) ) );
connect( aMainView->getViewPort(), SIGNAL( vpResizeEvent( QResizeEvent* ) ),
this, SLOT( OnResizeEvent( QResizeEvent* ) ) );
connect( aMainView->getViewPort(), SIGNAL( vpTransformed( OCCViewer_ViewPort* ) ),
myBand->update( true );
}
+void HYDROGUI_Overview::OnTransformationAfterOp( OCCViewer_ViewWindow::OperationType theOp )
+{
+ if( theOp>=OCCViewer_ViewWindow::WINDOWFIT )
+ {
+ myViewPort->fitAll();
+ }
+ OnTransformation();
+}
+
void HYDROGUI_Overview::OnTransformation()
{
if( myBand )