From c1ad56f667d139f5d3279774cf996430ff05a75b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 17 Sep 2015 16:12:53 +0100 Subject: [PATCH] Speculative fix for crash on using the audio mapping view with i18n. --- src/wx/audio_mapping_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index ce800ff81..407abb503 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -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 (wx_to_std (grid.GetCellValue (row, col))); + float const value = raw_convert (wx_to_std (grid.GetCellValue (row, col))); float const value_dB = 20 * log10 (value); int const range = 18; int height = 0; -- 2.30.2