]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Comments to previous integration
authordmv <dmv@opencascade.com>
Thu, 29 Jan 2009 08:00:02 +0000 (08:00 +0000)
committerdmv <dmv@opencascade.com>
Thu, 29 Jan 2009 08:00:02 +0000 (08:00 +0000)
src/OCCViewer/OCCViewer_ViewModel.cxx
src/OCCViewer/OCCViewer_ViewPort3d.h

index 46499449ae3c7db359d117c04af93d258de7d6a8..8f8e8fabf1e8d3f5ea70004a16f920f3f31dc7b5 100755 (executable)
@@ -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);
index c8bec10f1f873cccdc15400757fe62de8cb7ec9f..efa011d4b5e408dcfd24ddf2ec86fbf17719213c 100755 (executable)
@@ -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