Fix Mac version crashes on TextColor. Need at least v12.

This commit is contained in:
Michael Griebling
2024-10-05 13:52:35 -04:00
parent 428537b8d9
commit 9fecdcf563
5 changed files with 67 additions and 73 deletions

View File

@@ -587,18 +587,18 @@ public struct MTMathListBuilder {
}
let table = self.buildTable(env: env, firstList:nil, isRow:false)
return table
} else if command == "color" || command == "textcolor" {
} else if command == "color" {
// A color command has 2 arguments
let mathColor = MTMathColor()
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
// } else if command == "textcolor" {
// // A textcolor command has 2 arguments
// let mathColor = MTMathTextColor()
// mathColor.colorString = self.readColor()!
// mathColor.innerList = self.buildInternal(true)
// return mathColor
} else if command == "textcolor" {
// A textcolor command has 2 arguments
let mathColor = MTMathTextColor()
mathColor.colorString = self.readColor()!
mathColor.innerList = self.buildInternal(true)
return mathColor
} else if command == "colorbox" {
// A color command has 2 arguments
let mathColorbox = MTMathColorbox()