Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb138d6

Browse files
casperdcltimhoffm
andauthored
minor condition reordering
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent a77f18d commit eb138d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
842842
found_symbol = False
843843
font = self._get_font(new_fontname)
844844
if font is not None:
845-
if font.family_name == "cmr10" and uniindex == 0x2212:
845+
if uniindex == 0x2212 and font.family_name == "cmr10":
846846
# minus sign exists in cmsy10 (not cmr10)
847847
font = get_font(
848848
cbook._get_data_path("fonts/ttf/cmsy10.ttf"))

0 commit comments

Comments
 (0)