Skip to content

Commit

Permalink
Merge pull request #19872 from mathesoncalum/19460-textlines_save_reopen
Browse files Browse the repository at this point in the history
Fix #19460: Write begin, continue, and end text offset properties
  • Loading branch information
RomanPudashkin committed Oct 31, 2023
2 parents 5bd2f0d + b0aaa57 commit 19ad373
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/engraving/rw/write/twrite.cpp
Expand Up @@ -1393,6 +1393,9 @@ void TWrite::write(const Hairpin* item, XmlWriter& xml, WriteContext& ctx)
writeProperty(item, xml, Pid::SINGLE_NOTE_DYNAMICS);
writeProperty(item, xml, Pid::VELO_CHANGE_METHOD);
writeProperty(item, xml, Pid::PLAY);
writeProperty(item, xml, Pid::BEGIN_TEXT_OFFSET);
writeProperty(item, xml, Pid::CONTINUE_TEXT_OFFSET);
writeProperty(item, xml, Pid::END_TEXT_OFFSET);

for (const StyledProperty& spp : *item->styledProperties()) {
if (!item->isStyled(spp.pid)) {
Expand Down Expand Up @@ -2162,7 +2165,10 @@ void TWrite::write(const Pedal* item, XmlWriter& xml, WriteContext& ctx)
for (auto i : {
Pid::END_HOOK_TYPE,
Pid::LINE_VISIBLE,
Pid::BEGIN_HOOK_TYPE
Pid::BEGIN_HOOK_TYPE,
Pid::BEGIN_TEXT_OFFSET,
Pid::CONTINUE_TEXT_OFFSET,
Pid::END_TEXT_OFFSET
}) {
writeProperty(item, xml, i);
}
Expand Down

0 comments on commit 19ad373

Please sign in to comment.