src/reportlab/graphics/renderbase.py
changeset 4132 28379377462b
parent 3723 99aa837b6703
child 4252 fe660f227cac
--- a/src/reportlab/graphics/renderbase.py	Wed Aug 13 15:32:19 2014 +0100
+++ b/src/reportlab/graphics/renderbase.py	Fri Aug 15 14:05:20 2014 +0100
@@ -314,8 +314,11 @@
     def drawWedge(self, wedge):
         # by default ask the wedge to make a polygon of itself and draw that!
         #print "drawWedge"
-        polygon = wedge.asPolygon()
-        self.drawPolygon(polygon)
+        P = wedge.asPolygon()
+        if isinstance(P,Path):
+            self.drawPath(P)
+        else:
+            self.drawPolygon(P)
 
     def drawPath(self, path):
         polygons = path.asPolygons()