From f8f171cf51e78ade1e41b895127a4abd916435da Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 21 Nov 2008 16:19:33 +0000 Subject: if {resolution_wanted} is not set in auto_install, don't have { 'X' => undef, 'Depth' => undef, 'Y' => undef } as the $resolution_wanted --- lib/Xconfig/resolution_and_depth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Xconfig/resolution_and_depth.pm') 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} }; }; -- cgit v1.2.1