Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d48114e

Browse files
reformat to avoid Travis CI errors
1 parent a502c39 commit d48114e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,16 +948,18 @@ def _onSize(self, evt):
948948

949949
DEBUG_MSG("_onSize()", 2, self)
950950
sz = self.GetParent().GetSizer()
951-
if sz: si = sz.GetItem(self)
951+
if sz:
952+
si = sz.GetItem(self)
952953
if sz and si and not si.Proportion and not si.Flag & wx.EXPAND:
953954
# managed by a sizer, but with a fixed size
954955
size = self.GetMinSize()
955956
else:
956957
# variable size
957958
size = self.GetClientSize()
958-
if getattr(self, "_width", None) and size==(self._width,self._height):
959-
# no change in size
960-
return
959+
if getattr(self, "_width", None):
960+
if size == (self._width, self._height):
961+
# no change in size
962+
return
961963
self._width, self._height = size
962964
# Create a new, correctly sized bitmap
963965
self.bitmap = wxc.EmptyBitmap(self._width, self._height)

0 commit comments

Comments
 (0)