summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-17 16:12:53 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-17 16:12:53 +0100
commitc1ad56f667d139f5d3279774cf996430ff05a75b (patch)
tree4140a903421b238c1f4a4d2cfab97de5e3fbf44e
parente6fbc23298d3583e665ca8ca7efe33548bf3d31b (diff)
Speculative fix for crash on using the audio mapping view with i18n.
-rw-r--r--src/wx/audio_mapping_view.cc2
1 files changed, 1 insertions, 1 deletions
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<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;