From 3492e66bb27b74016f9061490d0c5abb3c4017a7 Mon Sep 17 00:00:00 2001 From: aquiles Date: Mon, 6 Dec 2010 19:29:13 +0100 Subject: [PATCH] Changed: #1206 fixed nelContext bug --- .../tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp | 2 +- .../tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp index 04de3ff98..682f6c262 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/example/plugin1.cpp @@ -53,7 +53,7 @@ void MyPlugin::execMessageBox() void MyPlugin::setNelContext(NLMISC::INelContext *nelContext) { nlassert(!NLMISC::INelContext::isContextInitialised()); - _LibContext = static_cast(nelContext); + _LibContext = new NLMISC::CLibraryContext(*nelContext); } QString MyPlugin::name() const diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp index 26c40435c..40fb0588e 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/log/log_plugin.cpp @@ -99,7 +99,7 @@ void CLogPlugin::createLogDock() void CLogPlugin::setNelContext(NLMISC::INelContext *nelContext) { nlassert(!NLMISC::INelContext::isContextInitialised()); - _LibContext = static_cast(nelContext); + _LibContext = new NLMISC::CLibraryContext(*nelContext); _displayer = new NLQT::CQtDisplayer(_ui.plainTextEdit);