The fixed width setting should really be maximum width. The text margins should be minimum margins.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user