mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug noticed by Scott.
Since there may be subfloats, we do not want to move past the end of a float when modifying it.
This commit is contained in:
parent
8e33b681a8
commit
2a2f15ec03
@ -744,7 +744,9 @@ def revert_floatalignment(document):
|
||||
alcmd = put_cmd_in_ert("\\raggedleft{}")
|
||||
if len(alcmd) > 0:
|
||||
document.body[l+1:l+1] = alcmd
|
||||
i = j
|
||||
# There might be subfloats, so we do not want to move past
|
||||
# the end of the inset.
|
||||
i += 1
|
||||
|
||||
def revert_tuftecite(document):
|
||||
"""Revert \cite commands in tufte classes"""
|
||||
|
Loading…
Reference in New Issue
Block a user