diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-10 16:38:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 09:13:51 +0100 |
| commit | b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f (patch) | |
| tree | 9968238c6c0511f044e6fcdb4abcc08b5eb28f27 /src/wx/time_picker.cc | |
| parent | 4a0ae92e28d7d1f0dd648d1b620efc324fdef161 (diff) | |
Remove all use of stringstream in an attempt to fix
the suspected thread-unsafe crash bugs on OS X.
Diffstat (limited to 'src/wx/time_picker.cc')
| -rw-r--r-- | src/wx/time_picker.cc | 7 |
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; |
