commit 2a2f15ec03e1771a5d9ac26d0c71784de4d8e5f1
Author: Richard Kimberly Heck <[email protected]>
Date: Sun Jun 14 15:33:06 2020 -0400
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.
---
lib/lyx2lyx/lyx_2_4.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index 22cc874..f3c2fdc 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -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"""
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs