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 #16396: Tie invisibility crossing system breaks #21347

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/engraving/rendering/dev/tdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ void TDraw::draw(const GlissandoSegment* item, Painter* painter)
double _spatium = item->spatium();
const Glissando* glissando = item->glissando();

Pen pen(item->curColor(item->visible(), glissando->lineColor()));
Pen pen(item->curColor(item->getProperty(Pid::VISIBLE).toBool(), item->getProperty(Pid::COLOR).value<Color>()));
pen.setWidthF(glissando->lineWidth());
pen.setCapStyle(PenCapStyle::FlatCap);
painter->setPen(pen);
Expand Down Expand Up @@ -2547,7 +2547,7 @@ void TDraw::draw(const SlurSegment* item, Painter* painter)
{
TRACE_DRAW_ITEM;

Pen pen(item->curColor());
Pen pen(item->curColor(item->getProperty(Pid::VISIBLE).toBool(), item->getProperty(Pid::COLOR).value<Color>()));
double mag = item->staff() ? item->staff()->staffMag(item->slur()->tick()) : 1.0;

//Replace generic Qt dash patterns with improved equivalents to show true dots (keep in sync with tie.cpp)
Expand Down Expand Up @@ -2930,7 +2930,7 @@ void TDraw::draw(const TieSegment* item, Painter* painter)
return;
}

Pen pen(item->curColor());
Pen pen(item->curColor(item->getProperty(Pid::VISIBLE).toBool(), item->getProperty(Pid::COLOR).value<Color>()));
double mag = item->staff() ? item->staff()->staffMag(item->tie()->tick()) : 1.0;

//Replace generic Qt dash patterns with improved equivalents to show true dots (keep in sync with slur.cpp)
Expand Down