diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-08 13:55:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-08 17:26:41 +0000 |
commit | e794ce1eef6730e5a46d5fb0aa6db2895ede85e7 (patch) | |
tree | 3aa26bd9ba4e6bd072761a22178e20a5d80d7627 /chart2/source/model | |
parent | cee552d2071601b6f4131eda9e9a0a17768ea272 (diff) |
verify that we hold the SolarMutex when ref-counting VclPtr
Change-Id: If0c5a8c99f0f853c9ecad0f1a4a7299d69805b34
Reviewed-on: https://gerrit.libreoffice.org/31755
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 6d3b8174c174..b9f59a9fbe70 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -35,6 +35,7 @@ #include <svx/charthelper.hxx> #include <vcl/openglwin.hxx> +#include <vcl/svapp.hxx> #include <com/sun/star/chart/ChartDataRowSource.hpp> @@ -1425,6 +1426,7 @@ void ChartModel::setWindow( const sal_uInt64 nWindowPtr ) throw (uno::RuntimeException, std::exception) { OpenGLWindow* pWindow = reinterpret_cast<OpenGLWindow*>(nWindowPtr); + SolarMutexGuard aGuard; mpOpenGLWindow = pWindow; } |