From f2220e12d81565c06a3cca681985b329deecf40e Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 16 Nov 2010 13:55:54 +0000 Subject: [PATCH] *** empty log message *** --- src/OCCViewer/OCCViewer_ViewFrame.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewFrame.cxx b/src/OCCViewer/OCCViewer_ViewFrame.cxx index 4946ec67a..2bcd60f21 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.cxx +++ b/src/OCCViewer/OCCViewer_ViewFrame.cxx @@ -7,7 +7,7 @@ #include #include - +#include OCCViewer_ViewFrame::OCCViewer_ViewFrame(SUIT_Desktop* theDesktop, OCCViewer_Viewer* theModel) : OCCViewer_ViewWindow( theDesktop, theModel ), myPopupRequestedView(0) @@ -90,8 +90,14 @@ void OCCViewer_ViewFrame::onMaximizedView( OCCViewer_ViewWindow* theView, bool i myLayout->addWidget( myViews.at(TOP_LEFT), 0, 0 ); myLayout->addWidget( myViews.at(TOP_RIGHT), 0, 1 ); } - for ( i = BOTTOM_RIGHT; i <= TOP_RIGHT; i++) - myViews.at(i)->show(); + OCCViewer_ViewWindow* view = 0; + for ( i = BOTTOM_RIGHT; i <= TOP_RIGHT; i++) { + view = myViews.at(i); + view->show(); + QApplication::processEvents(); + if (view != theView) + view->onViewFitAll(); + } } myLayout->invalidate(); } -- 2.39.2