diff options
Diffstat (limited to 'src/wx/audio_plot.cc')
| -rw-r--r-- | src/wx/audio_plot.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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]; +} |
