diff --git a/CHANGES b/CHANGES index 3c8468c79..09921095c 100644 --- a/CHANGES +++ b/CHANGES @@ -28,6 +28,7 @@ Bugs fixed * #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 * 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 ------------- diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 2baf245af..c36219485 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1504,8 +1504,8 @@ class LaTeXTranslator(nodes.NodeVisitor): return else: domain = self.builder.env.domains['std'] - figtype = domain.get_figtype(node) - if figtype and domain.get_numfig_title(node): + figtype = domain.get_figtype(next) + if figtype and domain.get_numfig_title(next): ids = set() # labels for figures go in the figure body, not before if node.get('refid'):