From 042d4f8300a9a97fdd8da89013288a2c5623d48e Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 14 Apr 2014 23:52:02 +0200 Subject: a pattern must not start with a separator Change-Id: I5dfc5c859b007b7e3d7266c7656dc533788888ba --- cui/source/options/optgdlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit