From: Martin Mares Date: Fri, 19 Aug 2022 10:24:55 +0000 (+0200) Subject: gal-scan: Transform "-" is interpreted as "use defaults" X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6f72ca887e44b4dc6dc30b146dd94ac4a8098717;p=gallery.git gal-scan: Transform "-" is interpreted as "use defaults" --- 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} //= '';