Speculative fix for crash on using the audio mapping view with i18n.
authorCarl Hetherington <cth@carlh.net>
Thu, 17 Sep 2015 15:12:53 +0000 (16:12 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Sep 2015 15:12:53 +0000 (16:12 +0100)
src/wx/audio_mapping_view.cc

index ce800ff81e58fab57e54927956dd1192b1c04fe4..407abb503b801173565571936d47b32afe2c641c 100644 (file)
@@ -80,7 +80,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;