Skip to content

Commit

Permalink
Add empty syl handling for neume notation
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Jun 22, 2023
1 parent db3f721 commit c816010
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/view_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,15 @@ void View::DrawTextChildren(DeviceContext *dc, Object *parent, TextDrawingParams
}
}

if ((!parent->GetChildCount()) && (m_doc->GetType() == Facs) && (m_doc->m_notationType == NOTATIONTYPE_neume)) {
// add child to empty syl in facsimile mode for neume notation
Text *text = new Text();
std::u32string str = U"";

text->SetText(str);
parent->AddChild(text);
}

for (Object *current : parent->GetChildren()) {
if (current->IsTextElement()) {
this->DrawTextElement(dc, dynamic_cast<TextElement *>(current), params);
Expand Down

0 comments on commit c816010

Please sign in to comment.