]> git.saurik.com Git - wxWidgets.git/commitdiff
dc.DrawLines fixed [1046055]
authorRobin Dunn <robin@alldunn.com>
Wed, 13 Oct 2004 15:14:10 +0000 (15:14 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 13 Oct 2004 15:14:10 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/ogl/_basic.py

index a08bd9ac656b239fceb3a88df53091533c8df7cc..bef03241e6062a4495233f3268c773f7db27d5a5 100644 (file)
@@ -1797,15 +1797,15 @@ class Shape(ShapeEvtHandler):
             dc.SetBrush(wx.BLACK_BRUSH)
 
         # Draw neck
-        dc.DrawLine(root, neck)
+        dc.DrawLine(root[0], root[1], neck[0], neck[1])
 
         if count > 1:
             # Draw shoulder-to-shoulder line
-            dc.DrawLine(shoulder1, shoulder2)
+            dc.DrawLine(shoulder1[0], shoulder1[1], shoulder2[0], shoulder2[1])
         # Draw all the little branches
         for i in range(count):
             pt, stemPt = self.GetBranchingAttachmentPoint(attachment, i)
-            dc.DrawLine(stemPt, pt)
+            dc.DrawLine(stemPt[0], stemPt[1], pt[0], pt[1])
 
             if self.GetBranchStyle() & BRANCHING_ATTACHMENT_BLOB and count > 1:
                 blobSize = 6.0