diff options
author | Francois Pons <fpons@mandriva.com> | 2000-01-12 04:55:05 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-01-12 04:55:05 +0000 |
commit | efe4d482264afc4df49addf731316c1f4c93b6dc (patch) | |
tree | 29c161ee30b6aeefa7b6ab10939a8d5cd6dbd306 | |
parent | 12284596b2044cc8964f42568321a54247d08d3d (diff) | |
download | drakx-efe4d482264afc4df49addf731316c1f4c93b6dc.tar drakx-efe4d482264afc4df49addf731316c1f4c93b6dc.tar.gz drakx-efe4d482264afc4df49addf731316c1f4c93b6dc.tar.bz2 drakx-efe4d482264afc4df49addf731316c1f4c93b6dc.tar.xz drakx-efe4d482264afc4df49addf731316c1f4c93b6dc.zip |
*** empty log message ***
-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"; |