Skip to content

Commit

Permalink
Merge pull request #3567 from rettinghaus/develop-ftrem
Browse files Browse the repository at this point in the history
fix: check fTrem attributes
  • Loading branch information
lpugin authored Jan 9, 2024
2 parents dab41c5 + b9f27b9 commit bc794ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## [unreleased]
* Support for `fTrem@unitdur` (@eNote-GmbH)

## [4.1.0] - 2023-12-15
* Support for staves ordered by `scoreDef`
Expand Down
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 bc794ff

Please sign in to comment.