chart2/source/view/main/ChartView.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit ded65fe3597aad601a390445c46584168706ac07 Author: Zolnai Tamás <tamas.zol...@collabora.com> Date: Mon Aug 25 19:17:03 2014 +0200 Store env variable in a static variable instead Change-Id: I5d6067806645722faac3fe90cbec01b6963f7283 diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 8665d45..710c50e 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2446,6 +2446,8 @@ bool ChartView::isReal3DChart() return GL3DHelper::isGL3DDiagram(xDiagram); } +const char* envChartDummyFactory = getenv("CHART_DUMMY_FACTORY"); + void ChartView::createShapes() { osl::ResettableMutexGuard aTimedGuard(maTimeMutex); @@ -2499,7 +2501,7 @@ void ChartView::createShapes() // hide OpenGL window for now in normal charts OpenGLWindow* pWindow = mrChartModel.getOpenGLWindow(); - if(pWindow && !getenv("CHART_DUMMY_FACTORY")) + if(pWindow && !envChartDummyFactory) pWindow->Show(false); } #endif
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits