Fixed centered lines

This commit is contained in:
M66B
2021-06-05 12:33:28 +02:00
parent b7cdf5a6e1
commit 5aed62a256
2 changed files with 2 additions and 2 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(x, ypos, canvas.getWidth(), ypos, paint);
canvas.drawLine(0, ypos, canvas.getWidth(), ypos, paint);
paint.setColor(c);
paint.setStrokeWidth(s);
paint.setPathEffect(p);