From ab928c1cbc3a417df41df35efc4a33a1ca862d66 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Mon, 16 Jan 2023 15:14:29 -0500 Subject: [PATCH] Fix color crash. --- Sources/SwiftMathRender/MathRender/MTTypesetter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftMathRender/MathRender/MTTypesetter.swift b/Sources/SwiftMathRender/MathRender/MTTypesetter.swift index c3ed19f..e13117a 100644 --- a/Sources/SwiftMathRender/MathRender/MTTypesetter.swift +++ b/Sources/SwiftMathRender/MathRender/MTTypesetter.swift @@ -43,7 +43,7 @@ func getInterElementSpaces() -> [[InterElementSpaceType]] { // Get's the index for the given type. If row is true, the index is for the row (i.e. left element) otherwise it is for the column (right element) func getInterElementSpaceArrayIndexForType(_ type:MTMathAtomType, row:Bool) -> Int { switch type { - case .ordinary, .placeholder: // A placeholder is treated as ordinary + case .color, .colorBox, .ordinary, .placeholder: // A placeholder is treated as ordinary return 0 case .largeOperator: return 1