Fix a couple of issues discovered by pylance

This commit is contained in:
Veronica Berglyd Olsen
2022-10-19 12:06:57 +02:00
parent e52f0a9e16
commit caf8a75bbc
3 changed files with 11 additions and 9 deletions
+1
View File
@@ -201,6 +201,7 @@ class GuiDocSplit(QDialog):
onLine = -1
hLevel = 0
hLabel = aLine.strip()
if aLine.startswith("# ") and spLevel >= 1:
onLine = lineNo
hLevel = 1