mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-02 22:44:18 +01:00
@@ -388,6 +388,9 @@ void PlotView::paintTimeScale(QPainter &painter, QRect &rect, range_t<off_t> sam
|
||||
float stopTime = (float)sampleRange.maximum / sampleRate;
|
||||
float duration = stopTime - startTime;
|
||||
|
||||
if (duration <= 0)
|
||||
return;
|
||||
|
||||
painter.save();
|
||||
|
||||
QPen pen(Qt::white, 1, Qt::SolidLine);
|
||||
|
||||
Reference in New Issue
Block a user