]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/_basic.py
reSWIGged
[wxWidgets.git] / wxPython / wx / lib / ogl / _basic.py
index de7b94a2b08cd98b0208eb26fab46a20a7c226f1..a8abcd5f5418a9018b2b58abb43b866dcce13439 100644 (file)
@@ -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: