mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
lyx2lyx/lyx_2_2.py: backport another box reversion issue
This commit is contained in:
parent
1c9c2c90ca
commit
62ad4a1ab5
@ -1093,11 +1093,13 @@ def revert_BoxFeatures(document):
|
|||||||
if i == -1:
|
if i == -1:
|
||||||
return
|
return
|
||||||
binset = find_token(document.body, "\\begin_inset Box", i - 11)
|
binset = find_token(document.body, "\\begin_inset Box", i - 11)
|
||||||
if binset == -1:
|
if binset == -1 or binset != i - 11:
|
||||||
return # then "thickness" is is just a word in the text
|
i = i + 1
|
||||||
|
continue # then "thickness" is is just a word in the text
|
||||||
einset = find_end_of_inset(document.body, binset)
|
einset = find_end_of_inset(document.body, binset)
|
||||||
if einset == -1:
|
if einset == -1:
|
||||||
document.warning("Malformed LyX document: Can't find end of box inset!")
|
document.warning("Malformed LyX document: Can't find end of box inset!")
|
||||||
|
i = i + 1
|
||||||
continue
|
continue
|
||||||
# read out the values
|
# read out the values
|
||||||
beg = document.body[i].find('"');
|
beg = document.body[i].find('"');
|
||||||
|
Loading…
Reference in New Issue
Block a user