From: isn Date: Thu, 9 Nov 2017 09:56:04 +0000 (+0300) Subject: debug X-Git-Tag: v2.1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f453d925c6129452cfcecbccb5115aa0bb76ca6;p=modules%2Fhydro.git debug --- diff --git a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx index d95c3e0c..54094935 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx @@ -18,10 +18,11 @@ #include "HYDROGUI_ProfileDlg.h" -#include "HYDROGUI_Module.h" #include "HYDROGUI_Tool.h" #include "HYDROGUI_AISTrihedron.h" +#ifndef TEST_MODE #include "HYDROGUI_Tool2.h" +#endif #include #include @@ -33,7 +34,10 @@ #include #include #include + +#ifndef TEST_MODE #include +#endif #include #include diff --git a/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx b/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx index bf82bf40..78c17941 100644 --- a/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ViewerDlg.cxx @@ -47,8 +47,11 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin : HYDROGUI_InputPanel( theModule, theTitle, true, isSplitter ) { SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr(); +#ifndef TEST_MODE SUIT_Study* aStudy = theModule ? theModule->application()->activeStudy() : 0; - +#else + SUIT_Study* aStudy = 0; +#endif myViewManager = new OCCViewer_ViewManager( aStudy, 0 ); OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );