Fix extra stroke on circle, fix #248
This commit is contained in:
@@ -47,6 +47,7 @@ module Squib
|
||||
# @api private
|
||||
def use_cairo(&block)
|
||||
@cairo_context.save
|
||||
@cairo_context.new_path # see bug 248
|
||||
block.yield(@cairo_context)
|
||||
@cairo_context.restore
|
||||
end
|
||||
|
||||
@@ -19,7 +19,7 @@ module Squib
|
||||
x, y, r = box.x, box.y, box.radius
|
||||
use_cairo do |cc|
|
||||
if box.arc_direction == :clockwise
|
||||
cc.arc(x, y, r, box.arc_start, box.arc_end)
|
||||
cc.arc(x, y, r, box.arc_start, box.arc_end)
|
||||
else
|
||||
cc.arc_negative(x, y, r, box.arc_start, box.arc_end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user