From cc5c9f60311953336d00be8fe21b9fc6daeab949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Wed, 10 Sep 2014 21:38:37 +0200 Subject: [PATCH] ensure that the glwidget is returned --- src/Gui/Quarter/SoQTQuarterAdaptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp index f373f0417..6ecedd413 100644 --- a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp +++ b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp @@ -77,7 +77,7 @@ QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget() QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getGLWidget() { - return this; + return viewport(); } QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget() const @@ -89,7 +89,7 @@ QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getWidget() const QWidget* SIM::Coin3D::Quarter::SoQTQuarterAdaptor::getGLWidget() const { - return const_cast(this); + return const_cast(viewport()); } void SIM::Coin3D::Quarter::SoQTQuarterAdaptor::setCameraType(SoType type)