Start line span after leading marging

This commit is contained in:
M66B 2021-05-07 14:31:31 +02:00
parent aad655d159
commit b5357da3cc
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class LineSpan extends ReplacementSpan {
paint.setStrokeWidth(strokeWidth);
if (dashLength != 0)
paint.setPathEffect(new DashPathEffect(new float[]{dashLength, dashLength}, 0));
canvas.drawLine(0, ypos, canvas.getWidth(), ypos, paint);
canvas.drawLine(x, ypos, canvas.getWidth(), ypos, paint);
paint.setColor(c);
paint.setStrokeWidth(s);
paint.setPathEffect(p);