From: José Matox Date: Sat, 19 Apr 2008 21:29:44 +0000 (+0000) Subject: Fix calls to find_default_layout (guarentee arguments consistency) X-Git-Tag: 1.6.10~5102 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b749e175c60c1c1f785cd9418fff8934fe2cffbe;p=features.git Fix calls to find_default_layout (guarentee arguments consistency) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24371 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index f059a81863..87ce8ecdc1 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -378,7 +378,7 @@ def revert_flex(document): # Discard PDF options for hyperref def revert_pdf_options(document): "Revert PDF options for hyperref." - # store the PDF options and delete the entries from the Lyx file + # store the PDF options and delete the entries from the Lyx file i = 0 hyperref = False title = "" @@ -1468,7 +1468,7 @@ def revert_rotfloat(document): i = i + 1 continue if get_value(document.body, 'sideways', i, j) != "false": - l = find_default_layout(doc, i + 1, j) + l = find_default_layout(document, i + 1, j) if l == -1: document.warning("Malformed LyX document: Missing `\\begin_layout' in Float inset.") return @@ -1607,7 +1607,7 @@ def revert_subfig(document): document.warning("Malformed lyx document: Missing '\\end_inset' (embedded float).") i = i + 1 continue - m = find_default_layout(document.body, k + 1, l) + m = find_default_layout(document, k + 1, l) # caption? cap = find_token(document.body, '\\begin_inset Caption', k + 1, l) caption = '' @@ -1640,7 +1640,7 @@ def revert_subfig(document): if optend == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (OptArg).") return - optc = find_default_layout(document.body, opt, optend) + optc = find_default_layout(document, opt, optend) if optc == -1: document.warning("Malformed LyX document: Missing `\\begin_layout' in Float inset.") return