mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Avoid crash when string only has one char
This commit is contained in:
parent
d0a27e3afc
commit
5154400b64
@ -3512,7 +3512,7 @@ def revert_totalheight(document):
|
||||
if ms:
|
||||
oldval = ms.group(1)
|
||||
oldunit = ms.group(2)
|
||||
if oldval[1] == ".":
|
||||
if len(oldval) > 1 and oldval[1] == ".":
|
||||
oldval = "0" + oldval
|
||||
if oldunit in list(relative_heights.keys()):
|
||||
oldval = str(float(oldval) * 100)
|
||||
|
Loading…
Reference in New Issue
Block a user