From c60bad2d19f4fcf6340af359c4f2fd26137fa18e Mon Sep 17 00:00:00 2001 From: isn Date: Fri, 5 Apr 2019 21:40:33 +0300 Subject: [PATCH] crash on exit (release mode) --- src/HYDROGUI/HYDROGUI_Overview.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROGUI_Overview.cxx b/src/HYDROGUI/HYDROGUI_Overview.cxx index 4b15a6b1..163d48df 100644 --- a/src/HYDROGUI/HYDROGUI_Overview.cxx +++ b/src/HYDROGUI/HYDROGUI_Overview.cxx @@ -311,7 +311,10 @@ OCCViewer_ViewPort3d* HYDROGUI_Overview::getViewPort( bool isMain ) const { if ( isMain) { - myMainView ? myMainView->getViewPort() : NULL; + if (myMainView!=NULL) + return myMainView->getViewPort(); + else + return NULL; } else return myViewPort; -- 2.39.2