Skip to content

Commit 87634b4

Browse files
Hocklykostub
authored andcommitted
When there is only one element in row, an array error is reported. (#111)
1 parent 4f46aff commit 87634b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iosMath/lib/MTMathAtomFactory.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ + (nullable MTMathAtom *)tableWithEnvironment:(NSString *)env rows:(NSArray<NSAr
339339
MTMathAtom* spacer = [MTMathAtom atomWithType:kMTMathAtomOrdinary value:@""];
340340
for (int i = 0; i < table.cells.count; i++) {
341341
NSArray<MTMathList*>* row = table.cells[i];
342-
if (row.count >= 1) {
342+
if (row.count > 1) {
343343
[row[1] insertAtom:spacer atIndex:0];
344344
}
345345
}

0 commit comments

Comments
 (0)