Show limit lines even if start and stop point are out of view
This commit is contained in:
parent
27490e1a33
commit
f29f62c3f7
@ -558,10 +558,6 @@ void TraceXYPlot::draw(QPainter &p)
|
|||||||
// scale to plot coordinates
|
// scale to plot coordinates
|
||||||
auto p1 = plotValueToPixel(line->getPoints()[j-1], i);
|
auto p1 = plotValueToPixel(line->getPoints()[j-1], i);
|
||||||
auto p2 = plotValueToPixel(line->getPoints()[j], i);
|
auto p2 = plotValueToPixel(line->getPoints()[j], i);
|
||||||
if(!plotRect.contains(p1) && !plotRect.contains(p2)) {
|
|
||||||
// completely out of frame
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// draw line
|
// draw line
|
||||||
p.drawLine(p1, p2);
|
p.drawLine(p1, p2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user