summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/resolution_and_depth.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-11-21 16:19:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-11-21 16:19:33 +0000
commitf8f171cf51e78ade1e41b895127a4abd916435da (patch)
treea7a84de3aab5799da267cb583f9dcde6cbe2a385 /lib/Xconfig/resolution_and_depth.pm
parent85bcf75b94e0777e878180d68b7bb19d01c3a35f (diff)
downloaddrakx-kbd-mouse-x11-f8f171cf51e78ade1e41b895127a4abd916435da.tar
drakx-kbd-mouse-x11-f8f171cf51e78ade1e41b895127a4abd916435da.tar.gz
drakx-kbd-mouse-x11-f8f171cf51e78ade1e41b895127a4abd916435da.tar.bz2
drakx-kbd-mouse-x11-f8f171cf51e78ade1e41b895127a4abd916435da.tar.xz
drakx-kbd-mouse-x11-f8f171cf51e78ade1e41b895127a4abd916435da.zip
if {resolution_wanted} is not set in auto_install, don't have
{ 'X' => undef, 'Depth' => undef, 'Y' => undef } as the $resolution_wanted
Diffstat (limited to 'lib/Xconfig/resolution_and_depth.pm')
-rw-r--r--lib/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm
index f688fce..09bc74b 100644
--- a/lib/Xconfig/resolution_and_depth.pm
+++ b/lib/Xconfig/resolution_and_depth.pm
@@ -224,7 +224,7 @@ sub configure_auto_install {
if ($old_X->{resolution_wanted} eq 'automatic') {
$default_resolution = { automatic => 1 };
} else {
- my $resolution_wanted = do {
+ my $resolution_wanted = $old_X->{resolution_wanted} && do {
my ($X, $Y) = split('x', $old_X->{resolution_wanted});
{ X => $X, Y => $Y, Depth => $old_X->{default_depth} };
};