Fix ui glitch where track ticks did not line up (#4171)

This commit is contained in:
Noah Brecht
2018-03-20 23:13:42 -04:00
committed by Oskar Wallgren
parent fc5fc1cbaa
commit 87e6b48df7

View File

@@ -884,7 +884,7 @@ void PatternView::paintEvent( QPaintEvent * )
const float ppt = fixedTCOs() ?
( parentWidget()->width() - 2 * TCO_BORDER_WIDTH )
/ (float) m_pat->length().getTact() :
( width() - 2 * TCO_BORDER_WIDTH )
( width() - TCO_BORDER_WIDTH )
/ (float) m_pat->length().getTact();
const int x_base = TCO_BORDER_WIDTH;