From 0f453d925c6129452cfcecbccb5115aa0bb76ca6 Mon Sep 17 00:00:00 2001 From: isn Date: Thu, 9 Nov 2017 12:56:04 +0300 Subject: [PATCH] debug --- src/HYDROGUI/HYDROGUI_ProfileDlg.cxx | 6 +++++- src/HYDROGUI/HYDROGUI_ViewerDlg.cxx | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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 ); -- 2.39.2