From 20e54688aeef3e368433ea0f0e41b817665183ff Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Fri, 16 Feb 2024 17:21:53 -0500 Subject: [PATCH] Remove redundant text for new syl in SetText() --- src/editortoolkit_neume.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/editortoolkit_neume.cpp b/src/editortoolkit_neume.cpp index 8f8885c8a33..0aa9f3fe447 100644 --- a/src/editortoolkit_neume.cpp +++ b/src/editortoolkit_neume.cpp @@ -1895,11 +1895,7 @@ bool EditorToolkitNeume::SetText(std::string elementId, const std::string &text) std::u32string str = U""; text->SetText(str); syl->AddChild(text); - syllable->AddChild(syl); - Text *textChild = new Text(); - textChild->SetText(wtext); - syl->AddChild(textChild); if (m_doc->GetType() == Facs) { // Create a default bounding box Zone *zone = new Zone();