Show limit lines even if start and stop point are out of view

This commit is contained in:
Jan Käberich 2022-04-22 13:53:12 +02:00
parent 27490e1a33
commit f29f62c3f7

View File

@ -558,10 +558,6 @@ void TraceXYPlot::draw(QPainter &p)
// scale to plot coordinates
auto p1 = plotValueToPixel(line->getPoints()[j-1], i);
auto p2 = plotValueToPixel(line->getPoints()[j], i);
if(!plotRect.contains(p1) && !plotRect.contains(p2)) {
// completely out of frame
continue;
}
// draw line
p.drawLine(p1, p2);
}