summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-03 09:50:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-03 09:50:47 +0000
commitff9168b4e431ee459c0c97b3ac96c039d996cc6f (patch)
treeffd31098d2e72593ddccbf1d975eec3cdb64fa83 /perl-install/Xconfig
parentbdf4bc857319259bc45034cab0bdde789d1c060c (diff)
downloaddrakx-ff9168b4e431ee459c0c97b3ac96c039d996cc6f.tar
drakx-ff9168b4e431ee459c0c97b3ac96c039d996cc6f.tar.gz
drakx-ff9168b4e431ee459c0c97b3ac96c039d996cc6f.tar.bz2
drakx-ff9168b4e431ee459c0c97b3ac96c039d996cc6f.tar.xz
drakx-ff9168b4e431ee459c0c97b3ac96c039d996cc6f.zip
don't have empty ModeLines lying around (bugzilla #16960)
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/xfree.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/Xconfig/xfree.pm b/perl-install/Xconfig/xfree.pm
index 95a3b5b49..f9b6eaa54 100644
--- a/perl-install/Xconfig/xfree.pm
+++ b/perl-install/Xconfig/xfree.pm
@@ -321,7 +321,7 @@ sub get_monitors {
my @raw_monitors = $raw_X->get_Sections('Monitor');
map {
my $h = raw_export_section($_, [ 'Identifier', @monitor_fields ]);
- $h->{ModeLine} = $_->{ModeLine};
+ $h->{ModeLine} = $_->{ModeLine} if $_->{ModeLine};
$h;
} @raw_monitors;
}
@@ -331,7 +331,7 @@ sub set_monitors {
mapn {
my ($raw_monitor, $monitor) = @_;
raw_import_section($raw_monitor, $monitor, \@monitor_fields);
- $raw_monitor->{ModeLine} = $monitor->{ModeLine};
+ $raw_monitor->{ModeLine} = $monitor->{ModeLine} if $monitor->{ModeLine};
} \@raw_monitors, \@monitors;
}
sub get_or_new_monitors {