mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-13 03:37:06 +01:00
Fix integer overflow in cursor segment drawing
This commit is contained in:
@@ -106,7 +106,7 @@ void Cursors::paintFront(QPainter &painter, QRect &rect, range_t<size_t> sampleR
|
||||
|
||||
// Draw vertical edges for individual segments
|
||||
painter.setPen(QPen(Qt::gray, 1, Qt::DashLine));
|
||||
for (int i = 1; i < segmentCount; i++) {
|
||||
for (long i = 1; i < segmentCount; i++) {
|
||||
int pos = minCursor->pos() + (i * cursorRect.width() / segmentCount);
|
||||
painter.drawLine(pos, rect.top(), pos, rect.bottom());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user