diff options
author | Eike Rathke <er@openoffice.org> | 2009-12-09 11:10:48 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2009-12-09 11:10:48 +0000 |
commit | 1b5acf308480c738ddafc97b720f54446436de5b (patch) | |
tree | 331c5bd073aff62b3f76087aec377fe2990b2fc5 | |
parent | 4d256d26b3d99149c3dafe8b1acbc161c69c171d (diff) |
#i107501# #i107518# ScRange::Parse_XL_Header: reset external doc name if it was none
-rw-r--r-- | sc/source/core/tool/address.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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( '['); |