Skip to content

Commit 28a0837

Browse files
committed
Fixed drawing of ordered list.
1 parent 88d88dd commit 28a0837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecOrderedListSpan.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class AztecOrderedListSpan : AztecListSpan {
8686
val textToDraw = getIndexOfProcessedLine(text, end).toString() + "."
8787

8888
val width = p.measureText(textToDraw)
89-
c.drawText(textToDraw, (textMargin + x + dir - width) * dir, (baseline + width + p.ascent()), p)
89+
c.drawText(textToDraw, (textMargin + x + dir - width) * dir, baseline.toFloat(), p)
9090

9191
p.color = oldColor
9292
p.style = style

0 commit comments

Comments
 (0)