summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-25 19:09:39 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-08-29 17:40:35 +0200
commit5d622c55ef776f31ec8a0a5dfcbbadd03c35e5a1 (patch)
tree6c5ecbe9fa07e41941a73f2705b2d12c3e8b9045 /svtools
parentDon't render with mp2DRenderer when we have 3D charts (diff)
downloadcore-5d622c55ef776f31ec8a0a5dfcbbadd03c35e5a1.tar.gz
core-5d622c55ef776f31ec8a0a5dfcbbadd03c35e5a1.zip
cache the call to getenv
Change-Id: I13095b13694aa092e3d5f542b5be12e703eb4590
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index e4218fc53313..d320b30ffec7 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -803,7 +803,8 @@ bool EmbeddedObjectRef::IsChart(const ::com::sun::star::uno::Reference < ::com::
bool EmbeddedObjectRef::IsGLChart(const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj)
{
- return IsChart(xObj) && getenv("CHART_DUMMY_FACTORY");
+ static const char* env = getenv("CHART_DUMMY_FACTORY");
+ return IsChart(xObj) && env;
}
void EmbeddedObjectRef::UpdateReplacement()