From 1c642ff0c5f36bbd9c49fca569feca671bfb2d9f Mon Sep 17 00:00:00 2001 From: Leon Vinken Date: Mon, 14 Sep 2020 07:53:44 +0200 Subject: [PATCH] fix #310412: [MusicXML import] alignment and offset of texts in vertical frames not preserved --- importexport/musicxml/importmxmlpass1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/importexport/musicxml/importmxmlpass1.cpp b/importexport/musicxml/importmxmlpass1.cpp index 01e45af29b47..0a2e1ada9c3a 100644 --- a/importexport/musicxml/importmxmlpass1.cpp +++ b/importexport/musicxml/importmxmlpass1.cpp @@ -499,7 +499,9 @@ static void addText2(VBox* vbx, Score* s, const QString strTxt, const Tid stl, c Text* text = new Text(s, stl); text->setXmlText(strTxt); text->setAlign(align); + text->setPropertyFlags(Pid::ALIGN, PropertyFlags::UNSTYLED); text->setOffset(QPointF(0.0, yoffs)); + text->setPropertyFlags(Pid::OFFSET, PropertyFlags::UNSTYLED); vbx->add(text); } }