Skip to content

Commit

Permalink
Fix #16396
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMigros committed Feb 25, 2024
1 parent ed67892 commit 96d4866
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 96d4866

Please sign in to comment.