Fix color crash.

This commit is contained in:
Michael Griebling
2023-01-16 15:14:29 -05:00
parent 79ec6ef9ec
commit ab928c1cbc

View File

@@ -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