dc.DrawLines fixed [1046055]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-10-13 15:14:10 +00:00
parent d9e9fb523f
commit 303aff5ed8

View 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