X Tutup
Skip to content

Fix #5444: do not access subsuper nucleus _metrics if not available#5448

Merged
mdboom merged 3 commits intomatplotlib:masterfrom
zblz:fix-vlist-subsuper
Nov 9, 2015
Merged

Fix #5444: do not access subsuper nucleus _metrics if not available#5448
mdboom merged 3 commits intomatplotlib:masterfrom
zblz:fix-vlist-subsuper

Conversation

@zblz
Copy link
Copy Markdown
Member

@zblz zblz commented Nov 9, 2015

This is a fix for #5444: we were previously using the last characters' _metrics to define the advance, but when the last character is a Vlist or Hlist they don't have a _metrics attribute. Now we check for it before accessing it. I also added a test for it that was previously missing.

@mdboom - I did this PR against master, but should likely be backported to 1.5.x and 2.0.x. I split the baseline images commits, with cm and stix in one and dejavu in another, so that only the first should go into 1.5.x but both of them into 2.0.x.

@mdboom mdboom added this to the Critical bugfix release (1.5.1) milestone Nov 9, 2015
mdboom added a commit that referenced this pull request Nov 9, 2015
Fix #5444: do not access subsuper nucleus _metrics if not available
@mdboom mdboom merged commit 838502e into matplotlib:master Nov 9, 2015
mdboom added a commit that referenced this pull request Nov 9, 2015
Fix #5444: do not access subsuper nucleus _metrics if not available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup