summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2009-12-15 13:02:04 +0100
committerVladimir Glazunov <vg@openoffice.org>2009-12-15 13:02:04 +0100
commit50e1b982ff532184892b63dd2634571b2ef6ce8e (patch)
treec65718feb909f9cc39f3223d5ab8e16b05764859
parent5f1d2a795de996227efe6e6b4288909f85e6b3e2 (diff)
parent1b5acf308480c738ddafc97b720f54446436de5b (diff)
CWS-TOOLING: integrate CWS jl146_DEV300
Notes
split repo tag: calc_ooo/DEV300_m68
-rw-r--r--sc/source/core/tool/address.cxx6
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( '[');