commit 44bfdbd5b2b1bcd3282ad98b7b77644c52c38bd6 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Wed Aug 28 07:27:28 2019 +0200
Fix totalheight reversion routine if there was no totalheight set --- lib/lyx2lyx/lyx_2_4.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 8436d9a..40a1f3d 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -3523,7 +3523,11 @@ def revert_totalheight(document): else: del document.body[kk] elif oldheight != "": - document.body.insert(k, "\theight " + oldheight) + if special != "": + document.body[k] = "\tspecial " + special + document.body.insert(k, "\theight " + oldheight) + else: + document.body[k] = "\theight " + oldheight i = j + 1