Fix color crash.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user