# HG changeset patch # User Chris Cannam # Date 1416570501 0 # Node ID dd95abfe736c557d765b989d146239bbdc77dcd2 # Parent 7463ece5d5e8317c09af2e70f1b117cde65aed0d Avoid drawing a single lonesome 0 if nothing is loaded at all diff -r 7463ece5d5e8 -r dd95abfe736c view/Pane.cpp --- a/view/Pane.cpp Fri Nov 14 10:19:50 2014 +0000 +++ b/view/Pane.cpp Fri Nov 21 11:48:21 2014 +0000 @@ -716,6 +716,10 @@ void Pane::drawCentreLine(int sampleRate, QPainter &paint, bool omitLine) { + if (omitLine && m_manager->getMainModelSampleRate() == 0) { + return; + } + int fontHeight = paint.fontMetrics().height(); int fontAscent = paint.fontMetrics().ascent();