]> git.lyx.org Git - features.git/commit
Fix bug 5827 (validate date-insert argument):
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 27 Mar 2009 11:22:54 +0000 (11:22 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 27 Mar 2009 11:22:54 +0000 (11:22 +0000)
commit5be56b517a913ef7fa51548c3b13df1160305c03
tree0d7f76ec4573a2a852bfd36b6319e3b727cbeffc
parente47e1cd751b33a222056d5b1e9d4e769a9ff4a2d
Fix bug 5827 (validate date-insert argument):

* src/support/os*.{cpp,h}:
- new function is_valid_strftime that validates strftime arguments,
  OS dependant (win32 differs here)

* src/Text3.cpp:
- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28932 a592a061-630c-0410-9148-cb99ea01b6c8
src/Text3.cpp
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h
src/support/os.h
src/support/os_cygwin.cpp
src/support/os_unix.cpp
src/support/os_win32.cpp