Skip to content

Commit

Permalink
fix: check if staff rotates in SyncFromFacsimileFunctor for Neon
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jan 8, 2025
1 parent 9fa466f commit 40da726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/facsimilefunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 40da726

Please sign in to comment.