A bit less aggressive version off the redraw text hack
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user