Kaydet (Commit) 200dd789 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix crash when creating chart

Change-Id: Ie6e38a0461a10cc33ff3d85cbf3b35ffab0efd59
üst 1ba10b7b
......@@ -10,6 +10,7 @@
#include <vcl/openglwin.hxx>
#include <vcl/opengl/OpenGLContext.hxx>
#include <vcl/event.hxx>
#include <vcl/sysdata.hxx>
class OpenGLWindowImpl
{
......@@ -21,9 +22,10 @@ private:
boost::scoped_ptr<SystemChildWindow> mpChildWindow;
};
OpenGLWindowImpl::OpenGLWindowImpl(Window* pWindow):
mpChildWindow(new SystemChildWindow(pWindow))
OpenGLWindowImpl::OpenGLWindowImpl(Window* pWindow)
{
SystemWindowData aData = OpenGLContext::generateWinData(pWindow, false);
mpChildWindow.reset(new SystemChildWindow(pWindow, 0, &aData));
mpChildWindow->Show();
maContext.init(mpChildWindow.get());
pWindow->SetMouseTransparent(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment