p.drawLine(m_integrateStartXPix, m_integrateStartYPix, m_integrateStartXPix, m_integrateStartBLYPix);
p.drawLine(x, y, x, m_integrateStopBLYPix);
p.end();
- reg += QRect(m_integrateStartXPix, vstarty, 1, abs(m_integrateStopBLYPix - m_integrateStartXPix) + 1);
- reg += QRect(x, vstopy, 1, abs(m_integrateStopBLYPix - x) + 1);
+ reg += QRect(m_integrateStartXPix, vstarty, 1, abs(vstarty - m_integrateStartBLYPix) + 1);
+ reg += QRect(x, vstopy, 1, abs(y - m_integrateStopBLYPix) + 1);
}
if (m_integrateStartXPix > m_integrateStopXPix) {