Fix a couple of issues discovered by pylance

This commit is contained in:
Veronica Berglyd Olsen committed 2022-10-19 12:06:57 +02:00
1 parent e52f0a9e16
commit caf8a75bbc
3 files changed
+11 -9

No files matched your search

+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