Draft: Fix error when deleting first digit of input

Fixes #13150.
This commit is contained in:
Roy-043
2024-04-19 19:14:17 +02:00
parent f281e3ef7f
commit 6ad75fb315

View File

@@ -1095,10 +1095,13 @@ class DraftToolBar:
treated as shortcuts
"""
if txt == "" or txt[0] in "0123456789.,-":
if txt == "":
self.updateSnapper()
if txt[0] in "0123456789.,-":
self.setMouseMode(False)
return
if txt[0] in "0123456789.,-":
self.updateSnapper()
self.setMouseMode(False)
return
txt = txt[0].upper()