Skip to content

Commit 8e34856

Browse files
committed
Fix wrong condition
1 parent 9d9a739 commit 8e34856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSharpMath/Editor/Extensions/TextLineDisplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static void HighlightCharacterAt<TFont, TGlyph>
157157
if (!self.Range.Contains(index.AtomIndex))
158158
throw new ArgumentOutOfRangeException
159159
(nameof(index), index, $"The index is not in the range {self.Range}.");
160-
if (index.SubIndexInfo is { })
160+
if (index.SubIndexInfo is null)
161161
throw new ArgumentException
162162
("The subindex type must not be none to be able to highlight it.", nameof(index));
163163
if (index.SubIndexInfo is (MathListSubIndexType.BetweenBaseAndScripts, _))

0 commit comments

Comments
 (0)