From: asl Date: Fri, 1 Dec 2017 13:00:40 +0000 (+0300) Subject: patch for exception if overview window is hidden X-Git-Tag: v2.1.1__salome84~7^2~2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87c51360709af5716a275c4a8cc7a01e007404e7;p=modules%2Fhydro.git patch for exception if overview window is hidden --- diff --git a/src/HYDROGUI/HYDROGUI_Overview.cxx b/src/HYDROGUI/HYDROGUI_Overview.cxx index bc809703..d236e332 100644 --- a/src/HYDROGUI/HYDROGUI_Overview.cxx +++ b/src/HYDROGUI/HYDROGUI_Overview.cxx @@ -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;