diff options
author | Eike Rathke <erack@redhat.com> | 2014-08-18 16:28:32 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-08-21 21:24:45 +0200 |
commit | e39e74e10b5cddfa0cf5fa9b575d36e612d4765e (patch) | |
tree | 391e8c88c3abbf630364ba222e92fb105277e512 /svl | |
parent | aaebe3af032122a16beb58ddd42ea4907b141529 (diff) |
detect * with no character following as invalid format code
... so adding it to the list in Format Numbers using the checkmark
button is not possible.
Change-Id: I57ca6a7a3617583a82a99c87291373b1fe4e246d
(cherry picked from commit bf674ab0f3097ad122c727b4d86f004f8cce1f61)
Reviewed-on: https://gerrit.libreoffice.org/10999
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 4165b9f62d88..f03b17a77d95 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -929,6 +929,11 @@ sal_Int32 ImpSvNumberformatScan::Symbol_Division(const OUString& rString) } else { + // Valid only if there is a character following, else we are + // at the end of a code that does not have a fill character + // (yet?). + if (sStrArray[nAnzStrings].getLength() < 2) + return nPos; bStar = true; } } |