Skip to content

Commit

Permalink
Merge pull request #4954 from mattmcclinch/116771-toggle-visible
Browse files Browse the repository at this point in the history
fix #116771: Note's dot's visibility is incorrect when toggling visibility with note and dot selected
  • Loading branch information
dmitrio95 committed May 1, 2019
2 parents 0b3cfbc + 09057c0 commit 42bce14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3519,6 +3519,9 @@ void Score::cmdToggleVisible()
for (Element* e : selection().elements()) {
if (e->isBracket()) // ignore
continue;
if (e->isNoteDot() && selection().elements().contains(e->parent()))
// already handled in Note::setProperty() and Rest::setProperty(); don't toggle twice
continue;
bool spannerSegment = e->isSpannerSegment();
if (!spannerSegment || !spanners.contains(toSpannerSegment(e)->spanner()))
e->undoChangeProperty(Pid::VISIBLE, !e->getProperty(Pid::VISIBLE).toBool());
Expand Down

0 comments on commit 42bce14

Please sign in to comment.