1 parent c5008f0 commit 35f2ca3Copy full SHA for 35f2ca3
1 file changed
ios/styles/OrderedListStyle.mm
@@ -121,7 +121,9 @@ - (void)applyIndentForListRange:(NSRange)listRange
121
existing.firstLineHeadIndent == listHeadIndent) {
122
return;
123
}
124
- NSMutableParagraphStyle *pStyle = [existing mutableCopy];
+ NSMutableParagraphStyle *pStyle =
125
+ existing ? [existing mutableCopy]
126
+ : [[NSMutableParagraphStyle alloc] init];
127
pStyle.headIndent = listHeadIndent;
128
pStyle.firstLineHeadIndent = listHeadIndent;
129
[self.host.textView.textStorage
0 commit comments