Include trimming.
[dcpomatic.git] / src / wx / audio_mapping_view.cc
index ce800ff81e58fab57e54927956dd1192b1c04fe4..d1c8497dae6bfc0cb5af749e6b45fec5f117ae03 100644 (file)
@@ -31,7 +31,6 @@
 #include <wx/wx.h>
 #include <wx/renderer.h>
 #include <wx/grid.h>
-#include <boost/lexical_cast.hpp>
 #include <iostream>
 
 using std::cout;
@@ -40,7 +39,6 @@ using std::string;
 using std::max;
 using std::vector;
 using boost::shared_ptr;
-using boost::lexical_cast;
 
 #define INDICATOR_SIZE 16
 
@@ -80,7 +78,7 @@ public:
                dc.SetBrush (*wxTheBrushList->FindOrCreateBrush (wxColour (255, 255, 255), wxBRUSHSTYLE_SOLID));
                dc.DrawRectangle (wxRect (rect.GetLeft() + xo, rect.GetTop() + yo, INDICATOR_SIZE, INDICATOR_SIZE));
 
-               float const value = lexical_cast<float> (wx_to_std (grid.GetCellValue (row, col)));
+               float const value = raw_convert<float> (wx_to_std (grid.GetCellValue (row, col)));
                float const value_dB = 20 * log10 (value);
                int const range = 18;
                int height = 0;