X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79609e6f24dbd9382a8351d10d436c6e115bda2e..a6c23e02f587f4819377f3a14b38740d21c7e9ab:/wxPython/wx/lib/ogl/_basic.py?ds=inline diff --git a/wxPython/wx/lib/ogl/_basic.py b/wxPython/wx/lib/ogl/_basic.py index de7b94a2b0..320329a8e4 100644 --- a/wxPython/wx/lib/ogl/_basic.py +++ b/wxPython/wx/lib/ogl/_basic.py @@ -521,7 +521,7 @@ class Shape(ShapeEvtHandler): # Don't try to resize an object with more than one image (this # case should be dealt with by overriden handlers) if (region.GetFormatMode() & FORMAT_SIZE_TO_CONTENTS) and \ - region.GetFormattedText().GetCount() and \ + len(region.GetFormattedText()) and \ len(self._regions) == 1 and \ not Shape.GraphicsInSizeToContents: @@ -963,7 +963,7 @@ class Shape(ShapeEvtHandler): if line in linesAtThisAttachment: # Done this one del linesAtThisAttachment[linesAtThisAttachment.index(line)] - self._lines.Append(line) + self._lines.append(line) # Now add any lines that haven't been listed in linesToSort self._lines += linesAtThisAttachment