Skip to content

Commit f8a621b

Browse files
committed
fix: layout after staff resize/rotation
- for elements jump on dragging after staff resize/rotation refs: DDMAL/Neon#1252
1 parent 3c32804 commit f8a621b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/editortoolkit_neume.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,8 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
24962496
accidZone->SetLry(accidZone->GetLry() + int(rotationOffset));
24972497
}
24982498
}
2499+
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();
2500+
m_doc->GetDrawingPage()->LayOutTranscription(true);
24992501
}
25002502
else if (obj->Is(SYL)) {
25012503
Syl *syl = vrv_cast<Syl *>(obj);
@@ -2530,6 +2532,7 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
25302532
zone->SetRotate(rotate);
25312533
}
25322534
zone->Modify();
2535+
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();
25332536
}
25342537
else {
25352538
LogError("Element of type '%s' is unsupported.", obj->GetClassName().c_str());
@@ -2538,8 +2541,6 @@ bool EditorToolkitNeume::Resize(std::string elementId, int ulx, int uly, int lrx
25382541
return false;
25392542
}
25402543

2541-
if (m_doc->IsTranscription() && m_doc->HasFacsimile()) m_doc->SyncFromFacsimileDoc();
2542-
25432544
m_editInfo.import("status", "OK");
25442545
m_editInfo.import("message", "");
25452546
return true;

0 commit comments

Comments
 (0)