Skip to content

Commit

Permalink
check fTrem attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Jan 4, 2024
1 parent dab41c5 commit 34d358e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view_beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ void View::DrawFTremSegment(DeviceContext *dc, Staff *staff, FTrem *fTrem)
secondElement->m_x += (m_doc->GetDrawingStemWidth(staff->m_drawingStaffSize)) / 2;
}

// Number of bars to draw
const int allBars = fTrem->GetBeams();
// Number of beams to draw
const int allBars = fTrem->HasBeams() ? fTrem->GetBeams() : fTrem->GetUnitdur() - DURATION_4;
int floatingBars = fTrem->HasBeamsFloat() ? fTrem->GetBeamsFloat() : 0;
int fullBars = allBars - floatingBars;

Expand Down

0 comments on commit 34d358e

Please sign in to comment.