Skip to content

Commit

Permalink
Fix issue with stem length of 0.0. Fixes #3577
Browse files Browse the repository at this point in the history
* Test suite evaluated locally
  • Loading branch information
lpugin committed Jan 24, 2024
1 parent 50aff1c commit 25eec3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calcdotsfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool CalcDotsFunctor::IsDotOverlappingWithFlag(const Note *note, const int staff
if (!stem) return false;

const Flag *flag = vrv_cast<const Flag *>(stem->GetFirst(FLAG));
if (!flag) return false;
if (!flag || (flag->m_drawingNbFlags == 0)) return false;

// for the purposes of vertical spacing we care only up to 16th flags - shorter ones grow upwards
char32_t flagGlyph = SMUFL_E242_flag16thUp;
Expand Down

0 comments on commit 25eec3c

Please sign in to comment.