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:
parent
399ea1daab
commit
6afc057382
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue