Skip to content

Commit

Permalink
Merge pull request rism-digital#3910 from DDMAL/staff-fix
Browse files Browse the repository at this point in the history
fix: check if staff rotates in `SyncFromFacsimileFunctor` for Neon
  • Loading branch information
lpugin authored Jan 9, 2025
2 parents 9fa466f + 40da726 commit 4196bb0
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 4196bb0

Please sign in to comment.