mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix assign_figure_numbers() raises AttributeError with old environment
This commit is contained in:
parent
7cd470f59a
commit
e3826ba2c4
@ -1701,7 +1701,7 @@ class BuildEnvironment:
|
||||
rewrite_needed = []
|
||||
|
||||
assigned = set()
|
||||
old_fignumbers = self.toc_fignumbers
|
||||
old_fignumbers = getattr(self, 'toc_fignumbers', {}) # compatible with old envs
|
||||
self.toc_fignumbers = {}
|
||||
fignum_counter = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user