PR 38 from Metallicow. Pen and Brush style updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-01-11 23:12:22 +00:00
parent 0fd7d9313a
commit 4f3de49192
2 changed files with 3 additions and 3 deletions

View File

@@ -390,7 +390,7 @@ class dcGraphicsPath(object):
if parent:
self.gstate = parent.gstate
self.fillcolour = parent._context.GetBrush().GetColour()
self.isfilled = parent._context.GetBrush().GetStyle() != wx.TRANSPARENT
self.isfilled = parent._context.GetBrush().GetStyle() <> wx.BRUSHSTYLE_TRANSPARENT
def AddCurveToPoint(self, cx1, cy1, cx2, cy2, x, y):
"""

View File

@@ -741,9 +741,9 @@ class pdfViewer(wx.ScrolledWindow):
if stroke:
if g.lineDashArray:
style = wx.USER_DASH
style = wx.PENSTYLE_USER_DASH
else:
style = wx.SOLID
style = wx.PENSTYLE_SOLID
cpen = wx.Pen(g.strokeRGB, g.lineWidth, style)
cpen.SetCap(g.lineCapStyle)
cpen.SetJoin(g.lineJoinStyle)