A bit less aggressive version off the redraw text hack
This commit is contained in:
+1
-3
@@ -1040,9 +1040,7 @@ class GuiBuildNovelDocView(QTextBrowser):
|
|||||||
# This forces a repaint of the text, It's a hack to fix an occational
|
# 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
|
# issue where the find/replace above interfers with the rendering and
|
||||||
# leaves parts of the document blank.
|
# leaves parts of the document blank.
|
||||||
textWidth = self.qDocument.textWidth()
|
self.qDocument.setTextWidth(self.qDocument.textWidth())
|
||||||
self.qDocument.setTextWidth(textWidth - 5)
|
|
||||||
self.qDocument.setTextWidth(textWidth)
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -183,9 +183,7 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
# This forces a repaint of the text, It's a hack to fix an occational
|
# 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
|
# issue where the find/replace above interfers with the rendering and
|
||||||
# leaves parts of the document blank.
|
# leaves parts of the document blank.
|
||||||
textWidth = self.qDocument.textWidth()
|
self.qDocument.setTextWidth(self.qDocument.textWidth())
|
||||||
self.qDocument.setTextWidth(textWidth - 5)
|
|
||||||
self.qDocument.setTextWidth(textWidth)
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user