Skip to content

Commit

Permalink
Fix getTextColor in MarkSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jan 22, 2024
1 parent 4f79f24 commit c48c233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aztec/src/main/kotlin/org/wordpress/aztec/spans/MarkSpan.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class MarkSpan : CharacterStyle, IAztecInlineSpan {
}

fun getTextColor(): String {
return java.lang.String.format("#%06X", 0xFFFFFF and textColor!!)
val currentColor = textColor ?: 0
return String.format("#%06X", 0xFFFFFF and currentColor)
}
}

0 comments on commit c48c233

Please sign in to comment.