Skip to content

Commit

Permalink
convert
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Feb 18, 2025
1 parent e0e6047 commit a0a1361
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,20 +798,20 @@ static String slurTieLineStyle(const SlurTie* s)
rest += color2xml(s);

if (ExportMusicXml::configuration()->exportLayout()) {
const SlurSegment* front = s->frontSegment();
const SlurSegment* back = s->backSegment();
const SlurSegment* front = toSlurSegment(s->frontSegment());
const SlurSegment* back = toSlurSegment(s->backSegment());
const int spatium = s->spatium();
if (front) {
const PointF start = front->ups(Grip::START).pos();
const PointF bezier = front->ups(Grip::BEZIER1).pos();
tagName += String(u" bezier-x=\"%1\"").arg(10 * (bezier.x() - start.x()) / spatium);
tagName += String(u" bezier-y=\"%1\"").arg(-10 * bezier.y() / spatium);
rest += String(u" bezier-x=\"%1\"").arg(10 * (bezier.x() - start.x()) / spatium);
rest += String(u" bezier-y=\"%1\"").arg(-10 * bezier.y() / spatium);
}
if (back) {
const PointF end = back->ups(Grip::END).pos();
const PointF bezier = back->ups(Grip::BEZIER2).pos();
tagName += String(u" bezier-x=\"%1\"").arg(10 * (bezier.x() - end.x()) / spatium);
tagName += String(u" bezier-y=\"%1\"").arg(-10 * bezier.y() / spatium);
rest += String(u" bezier-x=\"%1\"").arg(10 * (bezier.x() - end.x()) / spatium);
rest += String(u" bezier-y=\"%1\"").arg(-10 * bezier.y() / spatium);
}
}

Expand Down

0 comments on commit a0a1361

Please sign in to comment.