Skip to content

Commit

Permalink
Remove redundant zone of syl when merging syllables
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Feb 6, 2024
1 parent 6f59b9b commit cd1510b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editortoolkit_neume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,10 @@ bool EditorToolkitNeume::Group(std::string groupType, std::vector<std::string> e
+ obj->GetChildCount(CLEF))) {
Object *leftover;
while ((leftover = obj->FindDescendantByType(SYL)) != NULL) {
Zone *zone = dynamic_cast<Zone *>(leftover->GetFacsimileInterface()->GetZone());
if (zone != NULL) {
m_doc->GetFacsimile()->FindDescendantByType(SURFACE)->DeleteChild(zone);
}
obj->DeleteChild(leftover);
}
while ((leftover = obj->FindDescendantByType(DIVLINE)) != NULL) {
Expand Down

0 comments on commit cd1510b

Please sign in to comment.