fix #280214 Text style offsets are ignored when generating parts

This commit is contained in:
ws 2018-12-20 11:41:07 +01:00
parent 76ed92ca16
commit 4dd37ecc7c

View file

@ -485,9 +485,10 @@ void Excerpt::cloneStaves(Score* oscore, Score* score, const QList<int>& map, QM
Element* ne = e->linkedClone();
// reset offset as most likely it will not fit
PropertyFlags f = ne->propertyFlags(Pid::OFFSET);
if (f == PropertyFlags::UNSTYLED)
if (f == PropertyFlags::UNSTYLED) {
ne->setPropertyFlags(Pid::OFFSET, PropertyFlags::STYLED);
ne->setOffset(QPointF());
ne->resetProperty(Pid::OFFSET);
}
ne->setTrack(strack == -1 ? 0 : strack);
ne->setScore(score);
if (!ns)