by default --image sets range noextend

This is usually what I want
This commit is contained in:
Dima Kogan 2018-04-09 22:44:13 -07:00
parent e865871492
commit aedbc28afe

View File

@ -465,10 +465,13 @@ sub interpretCommandline
{ {
# images generally have the origin at the top-left instead of the # images generally have the origin at the top-left instead of the
# 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{ymin} && !defined $options{ymax} && if( !defined $options{xmin} && !defined $options{xmax} &&
!defined $options{ymin} && !defined $options{ymax} &&
! any { /^ *xrange\b/ } @{$options{set}} &&
! any { /^ *yrange\b/ } @{$options{set}} ) ! any { /^ *yrange\b/ } @{$options{set}} )
{ {
push @{$options{set}}, "yrange [:] reverse"; push @{$options{set}}, "xrange [:] noextend";
push @{$options{set}}, "yrange [:] reverse noextend";
} }
if ( ! -r $options{image} ) if ( ! -r $options{image} )