[Libreoffice-commits] core.git: chart2/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Mon May 12 20:43:19 PDT 2014


 chart2/source/view/main/ChartView.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 876a54067cf9c70c1462c6694591365a863363bd
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Tue May 13 05:38:06 2014 +0200

    a better place to show the window
    
    Now the first repaint will already draw on the window and we never see
    the grey background.
    
    Change-Id: Ibf44a77b5768979f9081b4f80f6f0a73e5023437

diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 6c5d725..ff07ecd 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -3119,6 +3119,7 @@ void ChartView::createShapes3D()
     if(!pWindow)
         return;
 
+    pWindow->Show();
     uno::Reference< XDiagram > xDiagram( mrChartModel.getFirstDiagram() );
     uno::Reference< XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY );
     if( !xCooSysContainer.is())
@@ -3175,7 +3176,6 @@ void ChartView::createShapes3D()
     m_pGL3DPlotter->create3DShapes(aDataSeries, *pCatProvider);
 
     m_pGL3DPlotter->render();
-    pWindow->Show();
 }
 
 } //namespace chart


More information about the Libreoffice-commits mailing list