diff options
author | tk0miya <i.tkomiya@gmail.com> | 2014-10-01 22:15:29 +0900 |
---|---|---|
committer | tk0miya <i.tkomiya@gmail.com> | 2014-10-01 22:15:29 +0900 |
commit | a20ab55213026a48c0fef2c8f13acba73bfe3fcd (patch) | |
tree | 4f8fa6a7fe080ab73a909ccfeae11e6807dceef9 | |
parent | 339f544c1d8bf574241e1e9a2adc988e09667d5d (diff) | |
download | sphinx-a20ab55213026a48c0fef2c8f13acba73bfe3fcd.tar.gz |
Fix numfig got error if table without title exists
-rw-r--r-- | sphinx/environment.py | 2 |
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]) |