Skip to content

Commit badcd01

Browse files
committed
Fix crash when using a space command (such as \,) inside of sized parentheses. Add a test for this case.
Supported by Sage Days 29
1 parent 3bf76b9 commit badcd01

File tree

11 files changed

+562
-523
lines changed

11 files changed

+562
-523
lines changed

lib/matplotlib/mathtext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,9 @@ class Kern(Node):
18021802
when its *width* denotes additional spacing in the vertical
18031803
direction.
18041804
"""
1805+
height = 0
1806+
depth = 0
1807+
18051808
def __init__(self, width):
18061809
Node.__init__(self)
18071810
self.width = width
-289 Bytes
Binary file not shown.
1.54 KB
Loading

lib/matplotlib/tests/baseline_images/test_mathtext/mathtext.svg

Lines changed: 16 additions & 5 deletions
Loading
Binary file not shown.
1.47 KB
Loading

0 commit comments

Comments
 (0)