summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-08-18 16:28:32 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-19 00:50:27 -0500
commitabea6ac4580a0d8ce48527d7cec4b4df087a541a (patch)
treec63e71cdfc6df22c037c012aa7b9d8c8857e1e2e /svl
parent171a47faaced1ac556ab9193546d6c543a709fe6 (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/10998 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.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 68959bce560d..813dededb663 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -933,6 +933,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;
}
}