Skip to content

Commit 305e336

Browse files
committed
Fix #2360: numref in LaTeX output is broken
1 parent 007736c commit 305e336

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES

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

3233
Documentation
3334
-------------

sphinx/writers/latex.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,8 @@ def add_target(id):
15041504
return
15051505
else:
15061506
domain = self.builder.env.domains['std']
1507-
figtype = domain.get_figtype(node)
1508-
if figtype and domain.get_numfig_title(node):
1507+
figtype = domain.get_figtype(next)
1508+
if figtype and domain.get_numfig_title(next):
15091509
ids = set()
15101510
# labels for figures go in the figure body, not before
15111511
if node.get('refid'):

0 commit comments

Comments
 (0)