Fix #2360: numref in LaTeX output is broken

This commit is contained in:
Takeshi KOMIYA 2016-03-02 00:28:45 +09:00
parent 007736c9ae
commit 305e336652
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ Bugs fixed
* #2329: Refresh environment forcely if source directory has changed. * #2329: Refresh environment forcely if source directory has changed.
* #2331: Fix code-blocks are filled by block in dvi; remove ``xcdraw`` option from xcolor package * #2331: Fix code-blocks are filled by block in dvi; remove ``xcdraw`` option from xcolor package
* Fix the confval type checker emits warnings if unicode is given to confvals which expects string value * Fix the confval type checker emits warnings if unicode is given to confvals which expects string value
* #2360: Fix numref in LaTeX output is broken
Documentation Documentation
------------- -------------

View File

@ -1504,8 +1504,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
return return
else: else:
domain = self.builder.env.domains['std'] domain = self.builder.env.domains['std']
figtype = domain.get_figtype(node) figtype = domain.get_figtype(next)
if figtype and domain.get_numfig_title(node): if figtype and domain.get_numfig_title(next):
ids = set() ids = set()
# labels for figures go in the figure body, not before # labels for figures go in the figure body, not before
if node.get('refid'): if node.get('refid'):