diff --git a/compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/SkiaParagraph.skiko.kt b/compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/SkiaParagraph.skiko.kt index d637a654859c1..09ab19b36203a 100644 --- a/compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/SkiaParagraph.skiko.kt +++ b/compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/SkiaParagraph.skiko.kt @@ -243,7 +243,7 @@ internal data class ComputedStyle( fun merge(density: Density, other: SpanStyle) { val fontSize = fontSizeInHierarchy(density, fontSize, other.fontSize) - textForegroundStyle.merge(other.textForegroundStyle) + textForegroundStyle = textForegroundStyle.merge(other.textForegroundStyle) other.fontFamily?.let { fontFamily = it } this.fontSize = fontSize other.fontWeight?.let { fontWeight = it }