bug fix: --image doesn't touch xrange,yrange if those are given in --set

This was already implemented, but due to a bug (perl precedence was surprising)
didn't work right
This commit is contained in:
Dima Kogan
2025-12-19 11:21:55 -08:00
parent d57634bcf9
commit 5837b13c00

View File

@@ -502,8 +502,7 @@ sub interpretCommandline
# bottom-left, so given nothing else, I flip the y axis # bottom-left, so given nothing else, I flip the y axis
if( !defined $options{xmin} && !defined $options{xmax} && if( !defined $options{xmin} && !defined $options{xmax} &&
!defined $options{ymin} && !defined $options{ymax} && !defined $options{ymin} && !defined $options{ymax} &&
! any { /^ *xrange\b/ } @{$options{set}} && !any { /^ *[xy]range\b/ } @{$options{set}} )
! any { /^ *yrange\b/ } @{$options{set}} )
{ {
push @{$options{set}}, "xrange [:] noextend"; push @{$options{set}}, "xrange [:] noextend";
push @{$options{set}}, "yrange [:] reverse noextend"; push @{$options{set}}, "yrange [:] reverse noextend";