X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae5aafdc71da118d56fcd9f2d9252e94acb8d05c..32485259c1342115488d219776dfebeb3d4d81b1:/wxPython/wx/lib/ogl/_oglmisc.py?ds=inline diff --git a/wxPython/wx/lib/ogl/_oglmisc.py b/wxPython/wx/lib/ogl/_oglmisc.py index cca574608d..db2185c832 100644 --- a/wxPython/wx/lib/ogl/_oglmisc.py +++ b/wxPython/wx/lib/ogl/_oglmisc.py @@ -153,7 +153,7 @@ def GetCentredTextExtent(dc, text_list, xpos = 0, ypos = 0, width = 0, height = max_width = 0 for line in text_list: - current_width, char_height = dc.GetTextExtent(line) + current_width, char_height = dc.GetTextExtent(line.GetText()) if current_width > max_width: max_width = current_width @@ -333,7 +333,7 @@ def GraphicsStraightenLine(point1, point2): elif abs(float(dy) / dx) > 1: point2[0] = point1[0] else: - point2[1] = point1[0] + point2[1] = point1[1]