mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
lyx_2_2.py: fix box reversion routine again
silly mistake, now Math.lyx reverts correctly again.
This commit is contained in:
parent
6421dd08c0
commit
9ef3edf6d7
@ -1092,11 +1092,13 @@ def revert_BoxFeatures(document):
|
||||
if i == -1:
|
||||
return
|
||||
binset = find_token(document.body, "\\begin_inset Box", i - 11)
|
||||
if binset == -1:
|
||||
return # then "thickness" is is just a word in the text
|
||||
if binset == -1 or binset != i - 11:
|
||||
i = i + 1
|
||||
continue # then "thickness" is is just a word in the text
|
||||
einset = find_end_of_inset(document.body, binset)
|
||||
if einset == -1:
|
||||
document.warning("Malformed LyX document: Can't find end of box inset!")
|
||||
i = i + 1
|
||||
continue
|
||||
# read out the values
|
||||
beg = document.body[i].find('"');
|
||||
|
Loading…
Reference in New Issue
Block a user