Replace incorrect uses of raw_convert with a new locale_convert.
[dcpomatic.git] / src / wx / time_picker.cc
index 1378af967b09a95adf2361343a4d9a4ea25964f2..bddf615d0c68ce1ed276787c115a3206aede1dea 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "time_picker.h"
 #include "wx_util.h"
-#include <dcp/raw_convert.h>
+#include "lib/locale_convert.h"
 #include <wx/spinctrl.h>
 #include <boost/bind.hpp>
 #include <iomanip>
@@ -32,7 +32,6 @@ using std::max;
 using std::string;
 using std::cout;
 using boost::bind;
-using dcp::raw_convert;
 
 TimePicker::TimePicker (wxWindow* parent, wxDateTime time)
        : wxPanel (parent)
@@ -97,8 +96,8 @@ TimePicker::update_spin ()
        }
 
        _block_update = true;
-       _hours_spin->SetValue (raw_convert<int> (wx_to_std (_hours->GetValue())));
-       _minutes_spin->SetValue (raw_convert<int> (wx_to_std (_minutes->GetValue())));
+       _hours_spin->SetValue (locale_convert<int> (wx_to_std (_hours->GetValue())));
+       _minutes_spin->SetValue (locale_convert<int> (wx_to_std (_minutes->GetValue())));
        _block_update = false;
 
        Changed ();