summaryrefslogtreecommitdiff
path: root/src/editing_tools/StraightenTool.vala
diff options
context:
space:
mode:
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.