diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-18 00:02:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-18 00:02:22 +0100 |
| commit | 19c3a350c179b7e2055978ad1c41559da99a77b3 (patch) | |
| tree | c99292234c7c7465a27da2dc5c5fd376636adcff /src | |
| parent | ec18743d91476f4a712644179c2d654d8702349c (diff) | |
Use wx_to_std and std_to_wx for now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/time_picker.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wx/time_picker.cc b/src/wx/time_picker.cc index 2528d737e..0853e4fcb 100644 --- a/src/wx/time_picker.cc +++ b/src/wx/time_picker.cc @@ -19,6 +19,7 @@ */ #include "time_picker.h" +#include "wx_util.h" #include "lib/raw_convert.h" #include <wx/spinctrl.h> #include <boost/bind.hpp> @@ -79,11 +80,11 @@ TimePicker::update_text () _block_update = true; - _hours->SetValue (wxString (raw_convert<string> (_hours_spin->GetValue ()))); + _hours->SetValue (std_to_wx (raw_convert<string> (_hours_spin->GetValue ()))); SafeStringStream m; m << setfill('0') << setw(2) << _minutes_spin->GetValue(); - _minutes->SetValue (wxString (m.str())); + _minutes->SetValue (std_to_wx (m.str())); _block_update = false; @@ -98,8 +99,8 @@ TimePicker::update_spin () } _block_update = true; - _hours_spin->SetValue (raw_convert<int> (_hours->GetValue().ToStdString())); - _minutes_spin->SetValue (raw_convert<int> (_minutes->GetValue().ToStdString())); + _hours_spin->SetValue (raw_convert<int> (wx_to_std (_hours->GetValue()))); + _minutes_spin->SetValue (raw_convert<int> (wx_to_std (_minutes->GetValue()))); _block_update = false; Changed (); |
