From: dmv Date: Thu, 29 Jan 2009 08:00:02 +0000 (+0000) Subject: Comments to previous integration X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7fab84807eada5d315ac036dc03ac26a28546ae5;p=modules%2Fgui.git Comments to previous integration --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 46499449a..8f8e8fabf 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -209,7 +209,9 @@ void OCCViewer_Viewer::onMouseMove(SUIT_ViewWindow* theWindow, QMouseEvent* theE OCCViewer_ViewWindow* aView = (OCCViewer_ViewWindow*) theWindow; if ( isSelectionEnabled() ) { - if (aView->getViewPort()->getBusy()) return; + if (aView->getViewPort()->isBusy()) return; // Check that the ViewPort initialization completed + // To Prevent call move event if the View port is not initialized + // IPAL 20883 Handle(V3d_View) aView3d = aView->getViewPort()->getView(); if ( !aView3d.IsNull() ) myAISContext->MoveTo(theEvent->x(), theEvent->y(), aView3d); diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.h b/src/OCCViewer/OCCViewer_ViewPort3d.h index c8bec10f1..efa011d4b 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.h +++ b/src/OCCViewer/OCCViewer_ViewPort3d.h @@ -74,7 +74,7 @@ public: void startRotation( int, int, int, const gp_Pnt& ); void rotate( int, int, int, const gp_Pnt& ); void endRotation(); - bool getBusy() {return myBusy;} + bool isBusy() {return myBusy;} // check that View Port is fully initialized protected: // EVENTS