From 40da72668bb3c3af7df4ec91885c68d528c69f13 Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Wed, 8 Jan 2025 10:54:31 -0500 Subject: [PATCH] fix: check if staff rotates in `SyncFromFacsimileFunctor` for Neon refs: https://github.com/DDMAL/Neon/issues/1256 --- src/facsimilefunctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facsimilefunctor.cpp b/src/facsimilefunctor.cpp index d19f84bb92..0803cb2830 100644 --- a/src/facsimilefunctor.cpp +++ b/src/facsimilefunctor.cpp @@ -184,7 +184,7 @@ FunctorCode SyncFromFacsimileFunctor::VisitStaff(Staff *staff) m_staffZones[staff] = zone; // The staff slope is going up. The y left position needs to be adjusted accordingly - if (zone->GetRotate() < 0) { + if (zone->HasRotate() && zone->GetRotate() < 0) { staff->m_drawingFacsY = staff->m_drawingFacsY + (m_currentNeumeLine->m_drawingFacsX2 - m_currentNeumeLine->m_drawingFacsX1) * tan(zone->GetRotate() * M_PI / 180.0);