A bit less aggressive version off the redraw text hack

This commit is contained in:
Veronica K. B. Olsen
2020-08-18 00:33:15 +02:00
parent a9ac3a2aa1
commit b80ff750fb
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -1040,9 +1040,7 @@ class GuiBuildNovelDocView(QTextBrowser):
# This forces a repaint of the text, It's a hack to fix an occational
# issue where the find/replace above interfers with the rendering and
# leaves parts of the document blank.
textWidth = self.qDocument.textWidth()
self.qDocument.setTextWidth(textWidth - 5)
self.qDocument.setTextWidth(textWidth)
self.qDocument.setTextWidth(self.qDocument.textWidth())
return
+1 -3
View File
@@ -183,9 +183,7 @@ class GuiDocViewer(QTextBrowser):
# This forces a repaint of the text, It's a hack to fix an occational
# issue where the find/replace above interfers with the rendering and
# leaves parts of the document blank.
textWidth = self.qDocument.textWidth()
self.qDocument.setTextWidth(textWidth - 5)
self.qDocument.setTextWidth(textWidth)
self.qDocument.setTextWidth(self.qDocument.textWidth())
return True