summaryrefslogtreecommitdiff
path: root/src/wx/time_picker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/time_picker.cc')
-rw-r--r--src/wx/time_picker.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wx/time_picker.cc b/src/wx/time_picker.cc
index a18182138..4706c896b 100644
--- a/src/wx/time_picker.cc
+++ b/src/wx/time_picker.cc
@@ -80,11 +80,8 @@ TimePicker::update_text ()
_block_update = true;
- _hours->SetValue (std_to_wx (raw_convert<string> (_hours_spin->GetValue ())));
-
- locked_stringstream m;
- m << setfill('0') << setw(2) << _minutes_spin->GetValue();
- _minutes->SetValue (std_to_wx (m.str()));
+ _hours->SetValue (wxString::Format ("%d", _hours_spin->GetValue ()));
+ _minutes->SetValue (wxString::Format ("%02d", _minutes_spin->GetValue ()));
_block_update = false;