projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
718903f
)
Fix the use of Today() for when invalid date is passed to ctor. Also
author
Robin Dunn
<robin@alldunn.com>
Fri, 18 Feb 2005 17:58:25 +0000
(17:58 +0000)
committer
Robin Dunn
<robin@alldunn.com>
Fri, 18 Feb 2005 17:58:25 +0000
(17:58 +0000)
set best/min size using size passed to ctor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32147
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/datectlg.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/datectlg.cpp
b/src/generic/datectlg.cpp
index 4c2a4c1d6e7a0cc947600cc5e1792cf293f14352..043733c3a69ae731e92e038864147e39ecdd327a 100644
(file)
--- a/
src/generic/datectlg.cpp
+++ b/
src/generic/datectlg.cpp
@@
-362,10
+362,12
@@
bool wxDatePickerCtrlGeneric::Create(wxWindow *parent,
m_popup->Hide();
if (!date.IsValid())
m_popup->Hide();
if (!date.IsValid())
-
date.Today(
);
-
- SetValue(date);
+
SetValue(wxDateTime::Today()
);
+ else
+
SetValue(date);
+ SetBestFittingSize(size);
+
return true;
}
return true;
}