From 87c51360709af5716a275c4a8cc7a01e007404e7 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 1 Dec 2017 16:00:40 +0300 Subject: [PATCH] patch for exception if overview window is hidden --- src/HYDROGUI/HYDROGUI_Overview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2