From 25eec3c9da8a5faf5c053f07fbe971a8eaaaaf7c Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Wed, 24 Jan 2024 14:11:41 +0100 Subject: [PATCH] Fix issue with stem length of 0.0. Fixes #3577 * Test suite evaluated locally --- src/calcdotsfunctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;