From 5eaec504a80f07433115a8ab10367d83771aeaa5 Mon Sep 17 00:00:00 2001 From: David Warring Date: Tue, 17 Oct 2023 08:12:39 +1300 Subject: [PATCH] refactor call to deprecated new-gfx() method --- lib/PDF/To/Cairo.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PDF/To/Cairo.rakumod b/lib/PDF/To/Cairo.rakumod index a5fb9f1..152d3d3 100644 --- a/lib/PDF/To/Cairo.rakumod +++ b/lib/PDF/To/Cairo.rakumod @@ -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;