]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
crash on exit (release mode)
authorisn <isn@opencascade.com>
Fri, 5 Apr 2019 18:40:33 +0000 (21:40 +0300)
committerisn <isn@opencascade.com>
Fri, 5 Apr 2019 18:40:33 +0000 (21:40 +0300)
src/HYDROGUI/HYDROGUI_Overview.cxx

index 4b15a6b16d656deaedd72ec49bc4451ccb692102..163d48df9a7191ce8b28dc9cce29b2a4ea05023b 100644 (file)
@@ -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;