Skip to content

Commit 4804a64

Browse files
authored
Merge pull request #32425 from rettinghaus/lineDist
Make line distance available in staff
2 parents b695f27 + bc25819 commit 4804a64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/engraving/dom/staff.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,8 @@ PropertyValue Staff::getProperty(Pid id) const
16261626
return staffType(Fraction(0, 1))->isSmall();
16271627
case Pid::MAG:
16281628
return staffType(Fraction(0, 1))->userMag();
1629+
case Pid::LINE_DISTANCE:
1630+
return staffType(Fraction(0, 1))->lineDistance();
16291631
case Pid::STAFF_INVISIBLE:
16301632
return staffType(Fraction(0, 1))->invisible();
16311633
case Pid::HIDE_WHEN_EMPTY:
@@ -1677,8 +1679,12 @@ bool Staff::setProperty(Pid id, const PropertyValue& v)
16771679
double _spatium = spatium(Fraction(0, 1));
16781680
staffType(Fraction(0, 1))->setUserMag(v.toReal());
16791681
setLocalSpatium(_spatium, spatium(Fraction(0, 1)), Fraction(0, 1));
1682+
break;
1683+
}
1684+
case Pid::LINE_DISTANCE: {
1685+
staffType(Fraction(0, 1))->setLineDistance(v.value<Spatium>());
1686+
break;
16801687
}
1681-
break;
16821688
case Pid::HIDE_WHEN_EMPTY:
16831689
setHideWhenEmpty(v.value<AutoOnOff>());
16841690
break;

0 commit comments

Comments
 (0)