mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +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:
|
if ms:
|
||||||
oldval = ms.group(1)
|
oldval = ms.group(1)
|
||||||
oldunit = ms.group(2)
|
oldunit = ms.group(2)
|
||||||
if oldval[1] == ".":
|
if len(oldval) > 1 and oldval[1] == ".":
|
||||||
oldval = "0" + oldval
|
oldval = "0" + oldval
|
||||||
if oldunit in list(relative_heights.keys()):
|
if oldunit in list(relative_heights.keys()):
|
||||||
oldval = str(float(oldval) * 100)
|
oldval = str(float(oldval) * 100)
|
||||||
|
Loading…
Reference in New Issue
Block a user