svl/source/numbers/zforscan.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 20e714167a713ef1129cb2f82bb650c803a5bf0c Author: Eike Rathke <[email protected]> Date: Mon Aug 18 16:28:32 2014 +0200 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 <[email protected]> Tested-by: Markus Mohrhard <[email protected]> diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index 4165b9f..f03b17a 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; } } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
