diff options
-rw-r--r-- | perl-install/printerdrake.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm index 397f9adbd..19de5ba02 100644 --- a/perl-install/printerdrake.pm +++ b/perl-install/printerdrake.pm @@ -197,7 +197,11 @@ wish to access and any applicable user name and password."), my %depth_to_col = reverse %col_to_depth; my $is_uniprint = $db_entry{GSDRIVER} eq "uniprint"; - $printer->{RESOLUTION} = "Default" unless @list_res; + if (@list_res) { + $printer->{RESOLUTION} = $list_res[0]; + } else { + $printer->{RESOLUTION} = "Default"; + } $printer->{CRLF} = $db_entry{DESCR} =~ /HP/; $printer->{BITSPERPIXEL} = @list_col ? $depth_to_col{$printer->{BITSPERPIXEL}} || $depth_to_col{$col[0]} : "Default"; |