From 0c54ae8d45449b20afda7a3bc006a90ed0c6952a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 13 Oct 2017 23:39:16 +0100 Subject: Colour axis labels in the audio plot (#835). --- src/wx/audio_plot.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/wx/audio_plot.cc') diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index c19ba946a..fe031aaac 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -319,3 +319,13 @@ AudioPlot::get_point (int channel, int point) const return p; } + +/** @param n Channel index. + * @return Colour used by that channel in the plot. + */ +wxColour +AudioPlot::colour (int n) const +{ + DCPOMATIC_ASSERT (n < int(_colours.size())); + return _colours[n]; +} -- cgit v1.2.3