Fix setting of defaults in config

This commit is contained in:
Veronica K. B. Olsen
2019-05-25 22:13:20 +02:00
parent 3cbea6eff2
commit 2bb10bd0d3
2 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ class GuiDocEditor(QTextEdit):
mLR = self.mainConf.textMargin[1]
self.setViewportMargins(mLR,mTB,mLR,mTB)
theOpt = QTextOption()
if self.mainConf.tabWidth >= 0:
if self.mainConf.tabWidth is not None:
theOpt.setTabStopDistance(self.mainConf.tabWidth)
if self.mainConf.doJustify:
theOpt.setAlignment(Qt.AlignJustify)