From 0fd335ab7bd6a50c85cbcc333fcdb79fdb56f409 Mon Sep 17 00:00:00 2001 From: Chad Walker Date: Tue, 11 Jun 2019 20:28:23 -0500 Subject: [PATCH] use source_image->width() and source_image->height() instead of scaled_source_width and scaled_source_height --- src/Timeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Timeline.cpp b/src/Timeline.cpp index 3d96c002..74aed9a4 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -601,7 +601,7 @@ void Timeline::add_layer(std::shared_ptr new_frame, Clip* source_clip, in // Composite a new layer onto the image painter.setCompositionMode(QPainter::CompositionMode_SourceOver); - painter.drawImage(0, 0, *source_image, crop_x * scaled_source_width, crop_y * scaled_source_height, crop_w * scaled_source_width, crop_h * scaled_source_height); + painter.drawImage(0, 0, *source_image, crop_x * source_image->width(), crop_y * source_image->height(), crop_w * source_image->width(), crop_h * source_image->height()); // Draw frame #'s on top of image (if needed) if (source_clip->display != FRAME_DISPLAY_NONE) {