From 6f72ca887e44b4dc6dc30b146dd94ac4a8098717 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 19 Aug 2022 12:24:55 +0200 Subject: [PATCH] gal-scan: Transform "-" is interpreted as "use defaults" --- bin/gal-scan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/gal-scan b/bin/gal-scan index 5fe5f7f..70c6666 100755 --- a/bin/gal-scan +++ b/bin/gal-scan @@ -106,7 +106,9 @@ foreach my $src (@source) { } print " ori=", $src->{orientation}; - defined $src->{xf} or $src->{xf} = $gal->get('ScanDefaultTransform'); + if (!defined $src->{xf} || $src->{xf} eq '-') { + $src->{xf} = $gal->get('ScanDefaultTransform'); + } print " xfrm=", $src->{xf}; $src->{title} //= ''; -- 2.39.5