summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortk0miya <i.tkomiya@gmail.com>2014-10-01 22:15:29 +0900
committertk0miya <i.tkomiya@gmail.com>2014-10-01 22:15:29 +0900
commita20ab55213026a48c0fef2c8f13acba73bfe3fcd (patch)
tree4f8fa6a7fe080ab73a909ccfeae11e6807dceef9
parent339f544c1d8bf574241e1e9a2adc988e09667d5d (diff)
downloadsphinx-a20ab55213026a48c0fef2c8f13acba73bfe3fcd.tar.gz
Fix numfig got error if table without title exists
-rw-r--r--sphinx/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py
index 52d5ff08..171fe324 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -1747,7 +1747,7 @@ class BuildEnvironment:
continue
figtype = get_figtype(subnode)
- if figtype:
+ if figtype and subnode['ids']:
register_fignumber(docname, secnum,
figtype, subnode['ids'][0])