Fix document margin recursion error (#1007)
This commit is contained in:
@@ -1061,8 +1061,8 @@ class GuiDocEditor(QTextEdit):
|
|||||||
"""If the text editor is resized, we must make sure the document
|
"""If the text editor is resized, we must make sure the document
|
||||||
has its margins adjusted according to user preferences.
|
has its margins adjusted according to user preferences.
|
||||||
"""
|
"""
|
||||||
QTextEdit.resizeEvent(self, theEvent)
|
|
||||||
self.updateDocMargins()
|
self.updateDocMargins()
|
||||||
|
QTextEdit.resizeEvent(self, theEvent)
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
@@ -471,10 +471,11 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
##
|
##
|
||||||
|
|
||||||
def resizeEvent(self, theEvent):
|
def resizeEvent(self, theEvent):
|
||||||
"""Make sure the document title is the same width as the window.
|
"""If the text editor is resized, we must make sure the document
|
||||||
|
has its margins adjusted according to user preferences.
|
||||||
"""
|
"""
|
||||||
QTextBrowser.resizeEvent(self, theEvent)
|
|
||||||
self.updateDocMargins()
|
self.updateDocMargins()
|
||||||
|
QTextBrowser.resizeEvent(self, theEvent)
|
||||||
return
|
return
|
||||||
|
|
||||||
def mouseReleaseEvent(self, theEvent):
|
def mouseReleaseEvent(self, theEvent):
|
||||||
|
|||||||
Reference in New Issue
Block a user