Skip to content

Commit

Permalink
Fix missing parenthesis causing wrong single-point size
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimbali committed Jun 5, 2023
1 parent c969cf9 commit a83f5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pympress/scribble.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def render_scribble(self, cairo_context, color, width, points, pressures):

# Draw from last uneven-indexed point to last point
cairo_context.move_to(*points[-2 if len(points) % 2 and len(points) > 1 else -1])
cairo_context.set_line_width(width * curve_widths[-1] if curve_widths else pressures[-1])
cairo_context.set_line_width(width * (curve_widths[-1] if curve_widths else pressures[-1]))
cairo_context.line_to(*points[-1])
cairo_context.stroke()

Expand Down

0 comments on commit a83f5a9

Please sign in to comment.