[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Aug 2 12:53:02 PDT 2011
sc/source/core/tool/compiler.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 57918a52375a9a7c6ee42072783cb2e29db8e609
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Aug 2 21:19:52 2011 +0200
fix for fdo#39728: check for empty local range names
Signed-off-by: Kohei Yoshida <kyoshida at novell.com>
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index b61b146..9f39358 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2895,7 +2895,9 @@ sal_Bool ScCompiler::IsNamedRange( const String& rUpperName )
// try local names first
bool bGlobal = false;
ScRangeName* pRangeName = pDoc->GetRangeName(aPos.Tab());
- const ScRangeData* pData = pRangeName->findByUpperName(rUpperName);
+ const ScRangeData* pData = NULL;
+ if (pRangeName)
+ pData = pRangeName->findByUpperName(rUpperName);
if (!pData)
{
pRangeName = pDoc->GetRangeName();
More information about the Libreoffice-commits
mailing list