diff options
author | Eike Rathke <erack@redhat.com> | 2015-04-23 15:48:52 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-04-23 15:52:50 +0200 |
commit | 78c2c450d900c8a57d75377d45463b20d2528875 (patch) | |
tree | f4e48bae6c4beac80073b50fd4d7d387de089ab1 | |
parent | e774a6ffd01d3228fab9098fa383573aa153a603 (diff) |
ensure pArr exists
Chart converts single tokens to string without token array, even
creating a compiler instance for each token.. which is less than
suboptimal.
Change-Id: I4472260457010dedf51891dbe1caa70ad4d792cc
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 61eeb761fe0d..e1e48a8d59b2 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4556,7 +4556,7 @@ void ScCompiler::CreateStringFromSingleRef( OUStringBuffer& rBuffer, const Formu GetSetupTabNames(), aRef, true); } } - else if ((p = pArr->PeekPrevNoSpaces()) && p->GetOpCode() == ocTableRefOpen) + else if (pArr && (p = pArr->PeekPrevNoSpaces()) && p->GetOpCode() == ocTableRefOpen) { ScAddress aAbs = rRef.toAbs(aPos); OUString aStr = pDoc->GetString(aAbs); |