From: isn Date: Fri, 5 Apr 2019 18:40:33 +0000 (+0300) Subject: crash on exit (release mode) X-Git-Tag: SH_V2_2_0~99^2~25^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c60bad2d19f4fcf6340af359c4f2fd26137fa18e;p=modules%2Fhydro.git crash on exit (release mode) --- 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;