File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/spans Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ open class AztecOrderedListSpan(
8383 p.color = listStyle.indicatorColor
8484 p.style = Paint .Style .FILL
8585
86- val start = if (attributes.hasAttribute(" start" ) == true ) {
86+ val startAttribute = if (attributes.hasAttribute(" start" ) == true ) {
8787 attributes.getValue(" start" ).toInt()
8888 } else {
8989 0
@@ -92,9 +92,9 @@ open class AztecOrderedListSpan(
9292 var textToDraw = " "
9393 getIndexOfProcessedLine(text, end)?.let {
9494 val isReversed = attributes.hasAttribute(" reversed" )
95- val lineIndex = if (start > 0 ) {
96- if (isReversed) start - (it - 1 )
97- else start + (it - 1 )
95+ val lineIndex = if (startAttribute > 0 ) {
96+ if (isReversed) startAttribute - (it - 1 )
97+ else startAttribute + (it - 1 )
9898 } else {
9999 val number = getNumberOfItemsInProcessedLine(text)
100100 if (isReversed) number - (it - 1 )
You can’t perform that action at this time.
0 commit comments