Skip to content

Commit

Permalink
Fix #320517: Voice 2 note stems face wrong way when noteheads made in…
Browse files Browse the repository at this point in the history
…visible

Follow up for #8012
  • Loading branch information
Jojo-Schmitz authored and igorkorsukov committed Aug 30, 2021
1 parent 1ff0cd0 commit a72598b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/engraving/libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include "staff.h"
#include "stafftext.h"
#include "stafftype.h"
#include "stem.h"
#include "stringdata.h"
#include "system.h"
#include "tempotext.h"
Expand Down Expand Up @@ -2849,8 +2850,10 @@ bool Measure::hasVoices(int staffIdx, Fraction stick, Fraction len) const
bool v = false;
if (cr->isChord()) {
Chord* c = toChord(cr);
// consider a chord visible if stem or hook(s) are visible
if ((c->stem() || c->hook()) && c->visible()) {
// consider a chord visible if stem, hook(s) or beam(s) are visible
if ((c->stem() && c->stem()->visible())
|| (c->hook() && c->hook()->visible())
|| (c->beam() && c->beam()->visible())) {
v = true;
} else {
// or any of its notes
Expand Down

0 comments on commit a72598b

Please sign in to comment.