Proposed fix for 1255 Segment/clip not showing whole last note in Song Editor

This commit is contained in:
Dave French
2014-12-26 12:33:00 +00:00
parent 9e4db1417a
commit 8c2ebf287d

View File

@@ -943,7 +943,9 @@ void PatternView::paintEvent( QPaintEvent * )
const float ppt = fixedTCOs() ?
( parentWidget()->width() - 2 * TCO_BORDER_WIDTH )
/ (float) m_pat->length().getTact() :
pixelsPerTact();
( width() - 2 * TCO_BORDER_WIDTH )
/ (float) m_pat->length().getTact();
const int x_base = TCO_BORDER_WIDTH;
p.setPen( c.darker( 300 ) );