Skip to content

Commit

Permalink
Make sure mask padding is not equal to minBarlineDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Feb 20, 2025
1 parent 72ca13b commit 906a914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/rendering/score/masklayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void MaskLayout::maskBarlineForText(BarLine* barline, const std::vector<TextBase

for (TextBase* text : allSystemText) {
const double fontSizeScaleFactor = text->size() / 10.0;
const double collisionPadding = 0.25 * spatium * fontSizeScaleFactor;
const double collisionPadding = 0.2 * spatium * fontSizeScaleFactor;
const bool hasFrame = text->frameType() != FrameType::NO_FRAME;
const bool useHighResShape = !text->isDynamic() && !text->hasFrame();
const double maskPadding = hasFrame ? 0.0 : std::clamp(0.5 * spatium * fontSizeScaleFactor, 0.1 * spatium, spatium);
Expand Down

0 comments on commit 906a914

Please sign in to comment.