Fixed crash when sublist is nil.
This commit is contained in:
@@ -260,7 +260,7 @@ public struct MTMathListBuilder {
|
||||
spacesAllowed = command == "text"
|
||||
let oldFontStyle = currentFontStyle
|
||||
currentFontStyle = fontStyle
|
||||
let sublist = self.buildInternal(true)!
|
||||
if let sublist = self.buildInternal(true) {
|
||||
// Restore the font style.
|
||||
currentFontStyle = oldFontStyle
|
||||
spacesAllowed = oldSpacesAllowed
|
||||
@@ -270,6 +270,7 @@ public struct MTMathListBuilder {
|
||||
if oneCharOnly {
|
||||
return list
|
||||
}
|
||||
}
|
||||
continue
|
||||
}
|
||||
atom = self.atomForCommand(command)
|
||||
|
||||
Reference in New Issue
Block a user