Refactor: simplify SimulationSliderLabel font metrics

This commit is contained in:
Nino van Hooff 2019-11-12 14:56:56 +01:00
parent 504eacce66
commit c31c1dd6fb

View file

@ -41,7 +41,7 @@ UM.PointingRectangle {
TextMetrics {
id: maxValueMetrics
font: UM.Theme.getFont("default")
font: valueLabel.font
text: maximumValue + 1 // layers are 0 based, add 1 for display value
}