X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2df8090e8f9f53ce5211f7037c632f792fed9be..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/wx/lib/ogl/_divided.py diff --git a/wxPython/wx/lib/ogl/_divided.py b/wxPython/wx/lib/ogl/_divided.py index 7ea907d9ab..40f2e5979c 100644 --- a/wxPython/wx/lib/ogl/_divided.py +++ b/wxPython/wx/lib/ogl/_divided.py @@ -260,12 +260,12 @@ class DividedShape(RectangleShape): if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE: # Align line according to the next handle along point = line.GetNextControlPoint(self) - if point.x < left: + if point[0] < left: x = left - elif point.x > right: + elif point[0] > right: x = right else: - x = point.x + x = point[0] else: x = left + (nth + 1) * self._width / (no_arcs + 1.0) else: @@ -276,12 +276,12 @@ class DividedShape(RectangleShape): if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE: # Align line according to the next handle along point = line.GetNextControlPoint(self) - if point.x < left: + if point[0] < left: x = left - elif point.x > right: + elif point[0] > right: x = right else: - x = point.x + x = point[0] else: x = left + (nth + 1) * self._width / (no_arcs + 1.0) else: @@ -310,12 +310,12 @@ class DividedShape(RectangleShape): if line and line.GetAlignmentType(isEnd) == LINE_ALIGNMENT_TO_NEXT_HANDLE: # Align line according to the next handle along point = line.GetNextControlPoint(self) - if point.y < bottom: + if point[1] < bottom: y = bottom - elif point.y > top: + elif point[1] > top: y = top else: - y = point.y + y = point[1] else: y = top + (nth + 1) * region._height / (no_arcs + 1.0) else: