diff --git a/src/calcdotsfunctor.cpp b/src/calcdotsfunctor.cpp index af628ebbdad..b979a50aa66 100644 --- a/src/calcdotsfunctor.cpp +++ b/src/calcdotsfunctor.cpp @@ -182,7 +182,7 @@ bool CalcDotsFunctor::IsDotOverlappingWithFlag(const Note *note, const int staff if (!stem) return false; const Flag *flag = vrv_cast(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;