mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Fix revert chain.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8673 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3cd2264196
commit
296632a2c3
@ -1,3 +1,7 @@
|
||||
2004-04-19 José Matos <jamatos@lyx.orrg>
|
||||
* parser_tools.py (chain): fix the detection of the last format for
|
||||
revertions.
|
||||
|
||||
2004-04-19 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
* lyx_1_4.py (convert_frameless_box): Replace instead of adding
|
||||
new code.
|
||||
|
@ -341,11 +341,16 @@ def chain(opt, initial_version):
|
||||
steps.append(step[0])
|
||||
else:
|
||||
mode = "revert"
|
||||
for step in format_relation:
|
||||
if final_step <= step[0] <= initial_step:
|
||||
steps.insert(0, step[0])
|
||||
relation_format = format_relation
|
||||
relation_format.reverse()
|
||||
last_step = None
|
||||
|
||||
if step[1][-1:] == opt.end:
|
||||
del steps[0]
|
||||
for step in relation_format:
|
||||
if final_step <= step[0] <= initial_step:
|
||||
steps.append(step[0])
|
||||
last_step = step
|
||||
|
||||
if last_step[1][-1] == opt.end:
|
||||
steps.pop()
|
||||
|
||||
return mode, steps
|
||||
|
Loading…
Reference in New Issue
Block a user