diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-12 23:17:20 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-12 23:17:20 +0000 |
| commit | bea8adc8856efac19e996d32bbb6e85bfb5b614b (patch) | |
| tree | 4de1cb00e0f939cd17329195e71a2d929073d536 | |
| parent | d37c1c35b36a28a3e3bbec6c21721f16f8e4aa48 (diff) | |
Missing LocaleGuards.
| -rw-r--r-- | ChangeLog | 13 | ||||
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 4 |
2 files changed, 6 insertions, 11 deletions
@@ -1,15 +1,6 @@ -2014-01-11 Carl Hetherington <cth@carlh.net> +2014-01-12 Carl Hetherington <cth@carlh.net> - * Hopefully fix error on restarting a cancelled transcode job - on Windows. - -2014-01-10 Carl Hetherington <cth@carlh.net> - - * Version 1.62.2 released. - -2014-01-10 Carl Hetherington <cth@carlh.net> - - * Version 1.62.1 released. + * Fix crashes when using -3dB options in locales with a , decimal separator. 2014-01-10 Carl Hetherington <cth@carlh.net> diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index 9fa57a1b1..c08da0912 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -58,6 +58,8 @@ public: void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool) { + LocaleGuard lg; + dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 1, wxPENSTYLE_SOLID)); dc.SetBrush (*wxTheBrushList->FindOrCreateBrush (wxColour (255, 255, 255), wxBRUSHSTYLE_SOLID)); dc.DrawRectangle (rect); @@ -222,6 +224,8 @@ AudioMappingView::set (AudioMapping map) void AudioMappingView::update_cells () { + LocaleGuard lg; + if (_grid->GetNumberRows ()) { _grid->DeleteRows (0, _grid->GetNumberRows ()); } |
