diff options
author | Eike Rathke <erack@redhat.com> | 2014-04-14 23:52:02 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-04-15 00:35:53 +0200 |
commit | 042d4f8300a9a97fdd8da89013288a2c5623d48e (patch) | |
tree | 4dc8cf3a20786de77287839b45fc1bdc374b2480 /cui/source/options/optgdlg.cxx | |
parent | toupper YMD for better input check visibility (diff) | |
download | core-042d4f8300a9a97fdd8da89013288a2c5623d48e.tar.gz core-042d4f8300a9a97fdd8da89013288a2c5623d48e.zip |
a pattern must not start with a separator
Change-Id: I5dfc5c859b007b7e3d7266c7656dc533788888ba
Diffstat (limited to 'cui/source/options/optgdlg.cxx')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 3e8718b9ff2a..08586e846141 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1736,6 +1736,10 @@ IMPL_LINK( OfaLanguagesTabPage, DatePatternsHdl, Edit*, pEd ) bSep = false; break; default: + // A pattern must not start with a separator (but + // may end with). + if (!(bY || bM || bD)) + bValid = false; bSep = true; } nChar += i-j; |