projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67901f7
)
Fix build with some older compilers.
author
Carl Hetherington
<cth@carlh.net>
Fri, 7 May 2021 15:15:20 +0000
(17:15 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 7 May 2021 15:15:20 +0000
(17:15 +0200)
src/wx/audio_plot.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_plot.cc
b/src/wx/audio_plot.cc
index 4e4b6d6a003810d59f353969d2048214917a6284..90a4aa91df39b5a5cc468ba8a3850b0b5f4b2ba4 100644
(file)
--- a/
src/wx/audio_plot.cc
+++ b/
src/wx/audio_plot.cc
@@
-477,7
+477,7
@@
AudioPlot::mouse_moved (wxMouseEvent& ev)
search (_peak, ev, min_dist, min_point);
}
- _cursor =
{}
;
+ _cursor =
boost::none
;
if (min_dist < DBL_MAX) {
wxRect before (min_point.draw.x - _cursor_size / 2, min_point.draw.y - _cursor_size / 2, _cursor_size, _cursor_size);
@@
-493,7
+493,7
@@
AudioPlot::mouse_moved (wxMouseEvent& ev)
void
AudioPlot::mouse_leave (wxMouseEvent &)
{
- _cursor =
{}
;
+ _cursor =
boost::none
;
Refresh ();
Cursor (optional<DCPTime>(), optional<float>());
}