From 15486340c6eb3e1378abbf1949fd2c318596126d Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Tue, 24 Jan 2017 18:13:52 +0100 Subject: [PATCH] debug on read mesh when the VTKViewer is embedded in a light application --- src/SalomeApp/SalomeApp_Study.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 0bd5244e3..a29457675 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -161,6 +161,12 @@ public: if (oldFather) { oldFather->removeChild(suit_obj, false); SalomeApp_Application* app = dynamic_cast( myStudy->application() ); +// MESSAGE("myStudy: " << myStudy->id() << " app " << app); +// MESSAGE("objectBrowser: "<< app->objectBrowser()); + if (!app->objectBrowser()) { + MESSAGE("Object Browser not found. Problem ??"); + return; + } SUIT_AbstractModel* model = dynamic_cast(app->objectBrowser()->model()); model->forgetObject( suit_obj ); -- 2.39.2