projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6fbc23
)
Speculative fix for crash on using the audio mapping view with i18n.
author
Carl Hetherington
<cth@carlh.net>
Thu, 17 Sep 2015 15:12:53 +0000
(16:12 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 17 Sep 2015 15:12:53 +0000
(16:12 +0100)
src/wx/audio_mapping_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_mapping_view.cc
b/src/wx/audio_mapping_view.cc
index ce800ff81e58fab57e54927956dd1192b1c04fe4..407abb503b801173565571936d47b32afe2c641c 100644
(file)
--- 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_cas
t<float> (wx_to_std (grid.GetCellValue (row, col)));
+ float const value =
raw_conver
t<float> (wx_to_std (grid.GetCellValue (row, col)));
float const value_dB = 20 * log10 (value);
int const range = 18;
int height = 0;