From da9d4492657221b1191fbd293f9a2c1a79f2a99a Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Mon, 16 Jan 2023 15:31:44 -0500 Subject: [PATCH] Fixing color issue. --- Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift b/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift index 2195385..2104005 100644 --- a/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift +++ b/Sources/SwiftMathRender/MathRender/MTMathListDisplay.swift @@ -232,7 +232,11 @@ public class MTMathListDisplay : MTDisplay { set { super.textColor = newValue for displayAtom in self.subDisplays { - displayAtom.textColor = newValue + if displayAtom.localTextColor == nil { + displayAtom.textColor = newValue + } else { + displayAtom.textColor = displayAtom.localTextColor + } } } get { super.textColor }