mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix reversion of beamer overprint when a nested paragraph has an argument
This commit is contained in:
parent
7b69cd6be5
commit
aa8227b61f
@ -3156,6 +3156,9 @@ def revert_overprint(document):
|
|||||||
r = r + 1
|
r = r + 1
|
||||||
argbeg = find_token(document.body, "\\begin_inset Argument 1", i, j)
|
argbeg = find_token(document.body, "\\begin_inset Argument 1", i, j)
|
||||||
if argbeg != -1:
|
if argbeg != -1:
|
||||||
|
# Is this really our argument?
|
||||||
|
nested = find_token(document.body, "\\begin_deeper", i, argbeg)
|
||||||
|
if nested != -1:
|
||||||
argend = find_end_of_inset(document.body, argbeg)
|
argend = find_end_of_inset(document.body, argbeg)
|
||||||
if argend == -1:
|
if argend == -1:
|
||||||
document.warning("Malformed LyX document. Cannot find end of Overprint argument!")
|
document.warning("Malformed LyX document. Cannot find end of Overprint argument!")
|
||||||
|
Loading…
Reference in New Issue
Block a user