diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-17 15:59:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-17 15:59:23 +0000 |
commit | e3077960cdc6c12eb2f5f940393e0fe3052f53a5 (patch) | |
tree | d9dcf89bf99b0bbeb20d78504ca6bc92d6a5d36e /chart2 | |
parent | 89b2159d2f6c2b7efa99b81f3aa4a9ab21d561d7 (diff) |
fix !HAVE_FEATURE_UI build
Change-Id: I5df340811b98c87f8b64fbaca469e2cd4535b81f
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/AbstractShapeFactory.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chart2/source/view/main/AbstractShapeFactory.cxx b/chart2/source/view/main/AbstractShapeFactory.cxx index d1906716f6da..c51434552021 100644 --- a/chart2/source/view/main/AbstractShapeFactory.cxx +++ b/chart2/source/view/main/AbstractShapeFactory.cxx @@ -44,6 +44,8 @@ #include "OpenglShapeFactory.hxx" #include "ShapeFactory.hxx" +#include <config_features.h> + using namespace com::sun::star; namespace chart { @@ -83,9 +85,10 @@ AbstractShapeFactory* AbstractShapeFactory::getOrCreateShapeFactory(const uno::R { static AbstractShapeFactory* pShapeFactory = nullptr; - if(pShapeFactory) + if (pShapeFactory) return pShapeFactory; +#if HAVE_FEATURE_UI if(getenv("CHART_DUMMY_FACTORY") && !Application::IsHeadlessModeEnabled()) { #ifndef DISABLE_DYNLOADING @@ -107,8 +110,9 @@ AbstractShapeFactory* AbstractShapeFactory::getOrCreateShapeFactory(const uno::R pShapeFactory->m_xShapeFactory = xFactory; #endif } +#endif - if(!pShapeFactory) + if (!pShapeFactory) pShapeFactory = new ShapeFactory(xFactory); return pShapeFactory; |