Skip to content

Commit

Permalink
refactor call to deprecated new-gfx() method
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Oct 16, 2023
1 parent 95bc36e commit 5eaec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDF/To/Cairo.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PDF::To::Cairo:ver<0.0.5> {
my PDF::Content::Canvas $canvas = $obj.canvas;
my @callback = [ $obj.callback ];
if $canvas.has-pre-gfx {
my $pre-gfx = $canvas.new-gfx: :@callback;
my PDF::Content $pre-gfx .= new: :$canvas, :@callback;
$pre-gfx.ops: $canvas.pre-gfx.ops;
}
temp $canvas.gfx.callback = @callback;
Expand Down

0 comments on commit 5eaec50

Please sign in to comment.