The fixed width setting should really be maximum width. The text margins should be minimum margins.

This commit is contained in:
Veronica K. B. Olsen
2019-11-02 21:16:24 +01:00
parent d7d920f485
commit df4ea641c2
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -293,8 +293,8 @@ class GuiDocEditor(QTextEdit):
tW = self.mainConf.textWidth
wW = self.width()
tM = int((wW - sW - tW)/2)
if tM < 0:
tM = 0
if tM < self.mainConf.textMargin:
tM = self.mainConf.textMargin
docFormat = self.qDocument.rootFrame().frameFormat()
docFormat.setLeftMargin(tM)
docFormat.setRightMargin(tM)