From 44bfdbd5b2b1bcd3282ad98b7b77644c52c38bd6 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 28 Aug 2019 07:27:28 +0200 Subject: [PATCH] Fix totalheight reversion routine if there was no totalheight set --- lib/lyx2lyx/lyx_2_4.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 8436d9a84c..40a1f3dfdb 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