mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix infinite loop. Thinko!
This commit is contained in:
parent
bbfff0e60f
commit
8567e09dbf
@ -4571,10 +4571,11 @@ def revert_starred_refs(document):
|
||||
continue
|
||||
# If we are not using hyperref, then we just need to delete the line
|
||||
if not use_hyperref:
|
||||
i = find_token(document.body, "nolink", i, end)
|
||||
if i == -1:
|
||||
k = find_token(document.body, "nolink", i, end)
|
||||
if k == -1:
|
||||
i = end
|
||||
continue
|
||||
del document.body[i]
|
||||
del document.body[k]
|
||||
i = end - 1
|
||||
continue
|
||||
# If we are using hyperref, then we'll need to do more.
|
||||
|
Loading…
Reference in New Issue
Block a user