Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #276868: Adding barline in mid-measure fails #4011

Merged
merged 1 commit into from Oct 6, 2018

Conversation

mattmcclinch
Copy link
Contributor

@mattmcclinch mattmcclinch commented Oct 5, 2018

See https://musescore.org/en/node/276868.

The problem, of course, is that BarLine::layout() never gets called for the new BarLine, even during a full re-layout of the score, since it is not an EndBarLine. Thus the width of the BarLine's bbox remains at its default value of 0. For BarLines that are EndBarLines, BarLine::layout() is called from Measure::createEndBarLines() during Score::collectSystem(). If the barline is dragged from the palette, BarLine::layout() is called from ScoreView::dragEnterEvent() when the BarLine is dragged into the ScoreView.

@anatoly-os anatoly-os merged commit 4e30c27 into musescore:master Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants