summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-24 12:35:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-24 12:36:48 +0200
commite41c33b376d8b5776e400979eb8544db596c5bbe (patch)
tree745164532fa302662d700b35e55b474932dd05d3 /chart2/source/model
parent2ed32f7afa712992486ad516407d30bce85b3530 (diff)
make sure that OpenGL charts are rendered after import
Change-Id: I3701a7593d7394abc39532a87b9aa50a3c92d457
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/main/ChartModel.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index c61e83cf4f8b..e4b671892ce6 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -1420,6 +1420,19 @@ void ChartModel::setWindow( const sal_uInt64 nWindowPtr )
mpOpenGLWindow = pWindow;
}
+void ChartModel::update()
+ throw (uno::RuntimeException, std::exception)
+{
+ if(!mpChartView)
+ {
+ mpChartView = new ChartView( m_xContext, *this);
+ xChartView = static_cast< ::cppu::OWeakObject* >( mpChartView );
+ }
+
+ mpChartView->setViewDirty();
+ mpChartView->update();
+}
+
OpenGLWindow* ChartModel::getOpenGLWindow()
{
return mpOpenGLWindow;