From 19d813fa48ef6f808109969696321f9c902ee63b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 15 Jun 2014 23:52:41 +0100 Subject: Fix crash on changing audio gain in some locales. Reported-by: Daniel Chauvet --- src/wx/about_dialog.cc | 1 + src/wx/audio_mapping_view.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wx') diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 751b453ed..63de45120 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -155,6 +155,7 @@ AboutDialog::AboutDialog (wxWindow* parent) tested_by.Add (wxT ("Mike Blakesley")); tested_by.Add (wxT ("David Booty")); tested_by.Add (wxT ("Roop Chand")); + tested_by.Add (wxT ("Daniel Chauvet")); tested_by.Add (wxT ("Adam Colt")); tested_by.Add (wxT ("John Convertino")); tested_by.Add (wxT ("Andreas Eli")); diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index d59c4ae07..6c1508aee 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include "lib/audio_mapping.h" #include "lib/util.h" #include "audio_mapping_view.h" @@ -238,7 +239,7 @@ AudioMappingView::update_cells () _grid->SetCellValue (i, 0, wxString::Format (wxT("%d"), i + 1)); for (int j = 1; j < _grid->GetNumberCols(); ++j) { - _grid->SetCellValue (i, j, std_to_wx (lexical_cast (_map.get (i, static_cast (j - 1))))); + _grid->SetCellValue (i, j, std_to_wx (libdcp::raw_convert (_map.get (i, static_cast (j - 1))))); } } -- cgit v1.2.3