Fix assign_figure_numbers() raises AttributeError with old environment

This commit is contained in:
tk0miya 2014-09-27 00:56:50 +09:00
parent 7cd470f59a
commit e3826ba2c4

View File

@ -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 = {}