From 1dca6318a7769892c7e440ccdb0767057ff6b110 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Fri, 1 Dec 2023 23:06:46 +0000 Subject: [PATCH] test: Set previousFontMetrics to null --- .../main/kotlin/org/wordpress/aztec/spans/AztecHeadingSpan.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecHeadingSpan.kt b/aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecHeadingSpan.kt index a0748a6e2..a19ad2a26 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecHeadingSpan.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecHeadingSpan.kt @@ -136,6 +136,8 @@ open class AztecHeadingSpan( previousFontMetrics!!.descent = fm.descent } + previousFontMetrics = null + var addedTopPadding = false var addedBottomPadding = false