From 49120f48474fc8fdc2448c75d961bc238213cfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 1 May 2018 14:34:32 +0200 Subject: New upstream version 0.28.2 --- src/editing_tools/StraightenTool.vala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/editing_tools/StraightenTool.vala') diff --git a/src/editing_tools/StraightenTool.vala b/src/editing_tools/StraightenTool.vala index 5c0eb98..023b636 100644 --- a/src/editing_tools/StraightenTool.vala +++ b/src/editing_tools/StraightenTool.vala @@ -292,10 +292,7 @@ public class StraightenTool : EditingTool { // copy image data from photo into a cairo surface. photo_surf = new Cairo.ImageSurface(Cairo.Format.ARGB32, low_res_tmp.width, low_res_tmp.height); Cairo.Context ctx = new Cairo.Context(photo_surf); - Gdk.cairo_set_source_pixbuf(ctx, low_res_tmp, 0, 0); - ctx.rectangle(0, 0, low_res_tmp.width, low_res_tmp.height); - ctx.fill(); - ctx.paint(); + paint_pixmap_with_background(ctx, low_res_tmp, 0, 0); // prepare rotation surface and context. we paint a rotated, // low-res copy of the image into it, followed by a faint grid. -- cgit v1.2.3