From 1b5acf308480c738ddafc97b720f54446436de5b Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 9 Dec 2009 11:10:48 +0000 Subject: #i107501# #i107518# ScRange::Parse_XL_Header: reset external doc name if it was none --- sc/source/core/tool/address.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index 259018e213ce..4cf317073b56 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -365,7 +365,10 @@ const sal_Unicode* ScRange::Parse_XL_Header( { p = lcl_ParseQuotedName(p, rExternDocName); if (!*p || *p != ']' || !rExternDocName.Len()) + { + rExternDocName.Erase(); return start; + } } else { @@ -418,7 +421,10 @@ const sal_Unicode* ScRange::Parse_XL_Header( // Excel does not allow [ and ] characters in sheet names though. p = lcl_ParseQuotedName(p, rExternDocName); if (!*p || *p != '!') + { + rExternDocName.Erase(); return start; + } if (rExternDocName.Len()) { xub_StrLen nOpen = rExternDocName.Search( '['); -- cgit