]> git.lyx.org Git - features.git/commitdiff
Fix copy-paste error.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Sep 2018 08:34:01 +0000 (10:34 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Sep 2018 08:34:01 +0000 (10:34 +0200)
Candidate for stable.

lib/lyx2lyx/lyx_2_1.py

index 09e74a333a01a1e18bd1a79239b28430940415c4..1dfe163b323436dc8ced06002c18edaeffd53bb9 100644 (file)
@@ -3672,7 +3672,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 = j + 1