fix #289501: saving score with autoplace disabled, disables it for all elements
This commit is contained in:
parent
797cfa68ac
commit
711a622bbc
1 changed files with 10 additions and 1 deletions
|
@ -514,7 +514,16 @@ bool Element::intersects(const QRectF& rr) const
|
|||
|
||||
void Element::writeProperties(XmlWriter& xml) const
|
||||
{
|
||||
writeProperty(xml, Pid::AUTOPLACE);
|
||||
bool autoplaceEnabled = score()->styleB(Sid::autoplaceEnabled);
|
||||
if (!autoplaceEnabled) {
|
||||
score()->setStyleValue(Sid::autoplaceEnabled, true);
|
||||
writeProperty(xml, Pid::AUTOPLACE);
|
||||
score()->setStyleValue(Sid::autoplaceEnabled, autoplaceEnabled);
|
||||
}
|
||||
else {
|
||||
writeProperty(xml, Pid::AUTOPLACE);
|
||||
}
|
||||
|
||||
// copy paste should not keep links
|
||||
if (_links && (_links->size() > 1) && !xml.clipboardmode()) {
|
||||
if (MScore::debugMode)
|
||||
|
|
Loading…
Reference in a new issue