Skip to content

Commit

Permalink
Merge pull request #3885 from DDMAL/fix-staff-rotate
Browse files Browse the repository at this point in the history
fix: layout after staff resize/rotation
  • Loading branch information
lpugin authored Dec 16, 2024
2 parents b9accc4 + f8a621b commit e5f0626
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/editortoolkit_neume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2496,6 +2496,8 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
accidZone->SetLry(accidZone->GetLry() + int(rotationOffset));
}
}
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();
m_doc->GetDrawingPage()->LayOutTranscription(true);
}
else if (obj->Is(SYL)) {
Syl *syl = vrv_cast<Syl *>(obj);
Expand Down Expand Up @@ -2530,6 +2532,7 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
zone->SetRotate(rotate);
}
zone->Modify();
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();
}
else {
LogError("Element of type '%s' is unsupported.", obj->GetClassName().c_str());
Expand All @@ -2538,8 +2541,6 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
return false;
}

if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();

m_editInfo.import("status", "OK");
m_editInfo.import("message", "");
return true;
Expand Down

0 comments on commit e5f0626

Please sign in to comment.