Fix a table-related crash.
This commit is contained in:
@@ -695,8 +695,9 @@ public struct MTMathListBuilder {
|
|||||||
return list
|
return list
|
||||||
} else {
|
} else {
|
||||||
// Create a new table with the current list and a default env
|
// Create a new table with the current list and a default env
|
||||||
let table = self.buildTable(env: nil, firstList:list, isRow:true)
|
if let table = self.buildTable(env: nil, firstList:list, isRow:true) {
|
||||||
return MTMathList(atom: table!)
|
return MTMathList(atom: table)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if command == "end" {
|
} else if command == "end" {
|
||||||
if currentEnv == nil {
|
if currentEnv == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user