summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/AbstractShapeFactory.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-01-02 15:09:01 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:32 +0100
commit135bd551bea5079b38b4baee1604479a878f4ee9 (patch)
treef98091bd6a063c80389874e0d9d80d9b25b5d7e3 /chart2/source/view/main/AbstractShapeFactory.cxx
parent262fccfccd203591e2a32e4f3d063b9fbfc85498 (diff)
Disable OpenGL for headless mode (so unit tests pass on Linux).
Change-Id: Ie4e1a59ce68932084d4635cd0f8d11cbffd6a3a2
Diffstat (limited to 'chart2/source/view/main/AbstractShapeFactory.cxx')
-rw-r--r--chart2/source/view/main/AbstractShapeFactory.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/main/AbstractShapeFactory.cxx b/chart2/source/view/main/AbstractShapeFactory.cxx
index 10b9a5504fab..feb3d694aa69 100644
--- a/chart2/source/view/main/AbstractShapeFactory.cxx
+++ b/chart2/source/view/main/AbstractShapeFactory.cxx
@@ -33,6 +33,7 @@
#include <rtl/math.hxx>
#include <svx/svdocirc.hxx>
#include <svx/svdopath.hxx>
+#include <vcl/svapp.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
@@ -78,7 +79,7 @@ AbstractShapeFactory* AbstractShapeFactory::getOrCreateShapeFactory(uno::Referen
if(pShapeFactory)
return pShapeFactory;
- if(getenv("CHART_DUMMY_FACTORY"))
+ if(getenv("CHART_DUMMY_FACTORY") && !Application::IsHeadlessModeEnabled())
{
osl::Module* pModule = getOpenGLModule();
if(pModule)