summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-04-14 23:52:02 +0200
committerEike Rathke <erack@redhat.com>2014-04-15 00:35:53 +0200
commit042d4f8300a9a97fdd8da89013288a2c5623d48e (patch)
tree4dc8cf3a20786de77287839b45fc1bdc374b2480 /cui
parent03e96dd2bea1dba5297a41b5ed1ee3b4d0c3b65b (diff)
a pattern must not start with a separator
Change-Id: I5dfc5c859b007b7e3d7266c7656dc533788888ba
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx4
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;