From b5892e58f02307108832f8846afdda49c3e4750a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 16 Sep 2018 10:34:01 +0200 Subject: [PATCH] Fix copy-paste error. (cherry picked from commit 305d449a47bf54d4f8ec594b0d1a2b5cf070c30b) --- lib/lyx2lyx/lyx_2_1.py | 2 +- status.23x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index f56d3adbc8..6e7d8266ba 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -3670,7 +3670,7 @@ def convert_captionlayouts(document): document.body[j:j] = ["\\end_layout", "", "\\end_inset", "", ""] document.body[i:i+1] = ["\\begin_layout %s" % document.default_layout, - "\\begin_inset Caption %s" % caption_dict[val], "", + "\\begin_inset Caption %s" % caption_dict[captype], "", "\\begin_layout %s" % document.default_layout] i += 1 diff --git a/status.23x b/status.23x index 1d6f7f4e78..77f72af598 100644 --- a/status.23x +++ b/status.23x @@ -100,6 +100,8 @@ What's new - Do not mark the import converters for Sweave and knitr as needauth. +- Fix conversion of captions from LyX 2.0 documents. + * USER INTERFACE -- 2.39.5