From 7f8ebad656f7442bd29837391733203e7b91c584 Mon Sep 17 00:00:00 2001 From: Timur Celik Date: Sat, 10 Feb 2018 01:29:04 +0100 Subject: [PATCH] assembling: Fix assembling of last frame in reverse mode https://bugs.freedesktop.org/show_bug.cgi?id=105027 --- libfprint/assembling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/assembling.c b/libfprint/assembling.c index ec37a25..7b9fb79 100644 --- a/libfprint/assembling.c +++ b/libfprint/assembling.c @@ -132,8 +132,8 @@ static unsigned int do_movement_estimation(struct fpi_frame_asmbl_ctx *ctx, if (reverse) { find_overlap(ctx, prev_stripe, cur_stripe, &min_error); - prev_stripe->delta_y = -prev_stripe->delta_y; - prev_stripe->delta_x = -prev_stripe->delta_x; + cur_stripe->delta_y = -cur_stripe->delta_y; + cur_stripe->delta_x = -cur_stripe->delta_x; } else find_overlap(ctx, cur_stripe, prev_stripe, &min_error); -- 2.17.0