Ensure the window is still valid before adjusting the scrollbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -552,6 +552,7 @@ class Editor(wx.ScrolledWindow):
|
|||||||
|
|
||||||
|
|
||||||
def AdjustScrollbars(self):
|
def AdjustScrollbars(self):
|
||||||
|
if self:
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
self.SetCharDimensions()
|
self.SetCharDimensions()
|
||||||
self.scroller.SetScrollbars(
|
self.scroller.SetScrollbars(
|
||||||
|
Reference in New Issue
Block a user