summaryrefslogtreecommitdiff
path: root/src/editing_tools/StraightenTool.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/editing_tools/StraightenTool.vala
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/editing_tools/StraightenTool.vala')
-rw-r--r--src/editing_tools/StraightenTool.vala5
1 files changed, 1 insertions, 4 deletions
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.