]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/lyx_2_1.py
Fixed remaining glitches in tcolorbox reversion routines
[lyx.git] / 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