From d6a0a948831c80fcc01bbe360717c44cd29aed31 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 23 Oct 2008 18:16:12 +0000 Subject: [PATCH] Revert unintentional commit. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27059 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 988d1f3544..66f0e8c46b 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -2133,13 +2133,13 @@ def convert_subfig(document): continue l = find_token(document.body, '\tsubcaptionText', i, endInset) if l == -1: - caption = "" - else: - caption = document.body[l][16:].strip('"') - del document.body[l] - addedLine = -1 + document.warning("Malformed lyx document: Can't find subcaptionText!") + i = endInset + continue + caption = document.body[l][16:].strip('"') + del document.body[l] del document.body[k] - addedLines -= 1 + addedLines = -2 subst = ['\\begin_inset Float figure', 'wide false', 'sideways false', 'status open', '', '\\begin_layout Plain Layout', '\\begin_inset Caption', '', '\\begin_layout Plain Layout'] + latex2lyx(caption) + \ -- 2.39.2