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
commit560bd7c6144c1b17b25f313d6ea81bb86a66766d (patch)
tree9d73288c33c6f6c88231c08273030fb4e375731c
parentc4fa6c6f7af6167bea78a404f34c40fbe2dde1b6 (diff)
parent27723585b29d727762cae2d7595507508354bca7 (diff)
CWS-TOOLING: integrate CWS jl146_DEV300ooo/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 906b9e769..14134de7b 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( '[');