This commit is contained in:
Kovid Goyal 2012-12-15 22:23:53 +05:30
parent c74ed9e887
commit af2095453a

View File

@ -313,10 +313,11 @@ class PdfEngine(QPaintEngine):
self.pdf.add_clip(p, fill_rule=fill_rule) self.pdf.add_clip(p, fill_rule=fill_rule)
def drawPoints(self, points): def drawPoints(self, points):
p = Path()
for point in points: for point in points:
point = self.current_transform.map(point) p.move_to(point.x(), point.y())
self.canvas.circle(point.x(), point.y(), 0.1, p.line_to(point.x(), point.y() + 0.001)
stroke=self.do_stroke, fill=self.do_fill) self.pdf.draw_path(p, stroke=self.do_stroke, fill=False)
def drawRects(self, rects): def drawRects(self, rects):
for rect in rects: for rect in rects: