Skip to content

Commit

Permalink
Merge pull request #3736 from DDMAL/insert-nc
Browse files Browse the repository at this point in the history
Redo layout after neume actions
  • Loading branch information
lpugin committed Aug 2, 2024
2 parents e859bc1 + e16f7cd commit c4284c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/editortoolkit_neume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,8 @@ bool EditorToolkitNeume::Insert(std::string elementType, std::string staffId, in
}
layer->ReorderByXPos();

m_doc->GetDrawingPage()->LayOutPitchPos();
m_doc->GetDrawingPage()->LayOutTranscription(true);

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

m_editInfo.import("status", status);
Expand Down Expand Up @@ -3518,6 +3519,7 @@ bool EditorToolkitNeume::ToggleLigature(std::vector<std::string> elementIds)
return false;
}

m_doc->GetDrawingPage()->LayOutTranscription(true);
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();

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

0 comments on commit c4284c5

Please sign in to comment.