Skip to content

Commit ad3c6f3

Browse files
committed
More precise shape for FretDiagram
Wasn't accounting for the width of the last fret line
1 parent d8e4b92 commit ad3c6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engraving/rendering/score/tlayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ void TLayout::layoutFretDiagram(const FretDiagram* item, FretDiagram::LayoutData
26872687

26882688
double shapeMarginAboveDiagram = ldata->fretDist * 1.5;
26892689
double w = ldata->stringDist * (item->strings() - 1) + ldata->markerSize;
2690-
double h = item->frets() * ldata->fretDist + ldata->stringExtendBottom + shapeMarginAboveDiagram;
2690+
double h = item->frets() * ldata->fretDist + ldata->stringExtendBottom + 0.5 * ldata->stringLineWidth + shapeMarginAboveDiagram;
26912691
double y = -shapeMarginAboveDiagram;
26922692
double x = -(ldata->markerSize * .5);
26932693

0 commit comments

Comments
 (0)