]> git.lyx.org Git - features.git/commitdiff
Fix totalheight reversion routine if there was no totalheight set
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 28 Aug 2019 05:27:28 +0000 (07:27 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:44 +0000 (15:48 +0200)
lib/lyx2lyx/lyx_2_4.py

index 8436d9a84c1e57e3d5de5814b4c4a94f68101405..40a1f3dfdb19dc766cef25a586534c039651da22 100644 (file)
@@ -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