summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-11-21 22:55:11 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-11-23 12:44:52 +0000
commita346bfaa4492fa53bf8cd21677d7880a86bbb811 (patch)
tree615c5592820c4edcce2d2c160ffaa61ef22a510d
parenta722ac370f7fca95e63c235b027420cdd7d648d5 (diff)
Resolves: tdf#104096 reset also rRawRes if trailing characters are present
... in lcl_ScAddress_Parse_OOo() so that ScRange::Parse() doesn't receive a "partially valid" result and does not attempt to follow the entire column/row path. Change-Id: Ie37c9d22280e30f770422fb621e3b9d972ec1546 (cherry picked from commit 8846cc2218091aa2af8ee3aadd81fd8a80e3b303) Reviewed-on: https://gerrit.libreoffice.org/31058 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/address.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 265877cd94e4..134067cc67cc 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -1439,7 +1439,7 @@ static ScRefFlags lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDo
nRes |= ScRefFlags::VALID;
}
else
- nRes = nBailOutFlags;
+ nRes = rRawRes = nBailOutFlags;
return nRes;
}