Auto-align drawing of horizontal grids.

This commit is contained in:
Uwe Risse 2022-10-13 19:00:53 +02:00
parent 98a67820c8
commit 5a0138fa02

View File

@ -415,7 +415,11 @@ void CPlotter::DrawOverlay() //DrawOverlay()
if(m_bTotalPower) painter.setPen(QPen(Qt::white, 1,Qt::DashLine));
for( int i=1; i<VERT_DIVS; i++) { //draw horizontal grids
y = int(i*m_vpixperdiv);
if(m_bTotalPower) {
painter.drawLine(15, y, w, y);
} else {
painter.drawLine(0, y, w, y);
}
}
if(m_bTotalPower) {