]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for exception if overview window is hidden
authorasl <asl@opencascade.com>
Fri, 1 Dec 2017 13:00:40 +0000 (16:00 +0300)
committerasl <asl@opencascade.com>
Fri, 1 Dec 2017 13:00:40 +0000 (16:00 +0300)
src/HYDROGUI/HYDROGUI_Overview.cxx

index bc809703f433f68c82e3be656123c6c455761bbd..d236e332725cfa099f71647dfd79bca637056578 100644 (file)
@@ -389,7 +389,7 @@ void HYDROGUI_Overview::OnTransformation()
 
 QPoint HYDROGUI_Overview::fromMain( int xp, int yp ) const
 {
-  if( !myMainView || !myViewPort )
+  if( !myMainView || !myViewPort || !myViewPort->isVisible() )
     return QPoint();
 
   const double EPS = 1E-2;