diff --git a/Sofa/GUI/Qt/src/sofa/gui/qt/RealGUI.cpp b/Sofa/GUI/Qt/src/sofa/gui/qt/RealGUI.cpp index 442d20d86ea..1f4b1d27d7b 100644 --- a/Sofa/GUI/Qt/src/sofa/gui/qt/RealGUI.cpp +++ b/Sofa/GUI/Qt/src/sofa/gui/qt/RealGUI.cpp @@ -1180,7 +1180,7 @@ void RealGUI::registerViewer(BaseViewer* _viewer) BaseViewer* RealGUI::getViewer() { - return m_viewer!=nullptr ? m_viewer : nullptr; + return m_viewer; } //------------------------------------