Fix #46586 - Misplaced barline with large spatium

In `Barine::layout()`, `magS()` is passed to `layoutWidth()` to compute bar line width.

If bar lines are to be scaled, `layoutWidth()` uses it to multiply `spatiun()`, but `magS()` already takes `spatium()` into account and this results in `spatium()` being accounted for twice.

Fixed by using `mag()` instead in the call to `layoutWidth()`.
This commit is contained in:
Maurizio M. Gavioli 2015-02-19 09:40:05 +01:00
parent 399ea1daab
commit 6afc057382

View file

@ -950,7 +950,7 @@ void BarLine::layout()
// bar lines not hidden
else {
qreal dw = layoutWidth(score(), barLineType(), magS());
qreal dw = layoutWidth(score(), barLineType(), mag());
QRectF r(0.0, y1, dw, y2-y1);
if (score()->styleB(StyleIdx::repeatBarTips)) {