projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b7928c
)
Stop invalid dates causing boost::posix_time to raise exceptions.
author
Carl Hetherington
<cth@carlh.net>
Sun, 12 Jan 2020 23:44:00 +0000
(
00:44
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 14 Jan 2020 00:19:26 +0000
(
01:19
+0100)
src/wx/kdm_timing_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/kdm_timing_panel.cc
b/src/wx/kdm_timing_panel.cc
index bad900d2768c5e5c3c29c4b4a88316596b19d341..e0e5ac44f4a3c87b9dcc3e3982ec26fb23bd5af9 100644
(file)
--- a/
src/wx/kdm_timing_panel.cc
+++ b/
src/wx/kdm_timing_panel.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2015-20
18
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015-20
20
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-70,6
+70,12
@@
KDMTimingPanel::KDMTimingPanel (wxWindow* parent)
_warning->SetForegroundColour (wxColour (255, 0, 0));
_warning->SetFont(font);
_warning->SetForegroundColour (wxColour (255, 0, 0));
_warning->SetFont(font);
+ /* I said I've been to the year 3000. Not much has changed but they live underwater. And your In-in-in-interop DCP
+ is pretty fine.
+ */
+ _from_date->SetRange(wxDateTime(1, wxDateTime::Jan, 1900, 0, 0, 0, 0), wxDateTime(31, wxDateTime::Dec, 3000, 0, 0, 0, 0));
+ _until_date->SetRange(wxDateTime(1, wxDateTime::Jan, 1900, 0, 0, 0, 0), wxDateTime(31, wxDateTime::Dec, 3000, 0, 0, 0, 0));
+
_from_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_until_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_from_time->Changed.connect (bind (&KDMTimingPanel::changed, this));
_from_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_until_date->Bind (wxEVT_DATE_CHANGED, bind (&KDMTimingPanel::changed, this));
_from_time->Changed.connect (bind (&KDMTimingPanel::changed, this));