From e5662d24f5e5bad186f9d5e9274bcee4d3536fab Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 9 Feb 2010 13:44:09 +0000 Subject: partitioning_wizard: fix a crash on empty disk --- perl-install/fs/partitioning_wizard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index b71ea9384..ea9521768 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -396,7 +396,7 @@ sub create_display_box { gtkset_size_request(Gtk2::Label->new("."), 1, 0)); gtkpack__($display_box, $part_sep); } - $display_box->remove($part_sep); + $display_box->remove($part_sep) if $part_sep; unless ($resize || $fill_empty) { my @types = (N_("Ext2/3/4"), N_("XFS"), N_("Swap"), arch() =~ /sparc/ ? N_("SunOS") : arch() eq "ppc" ? N_("HFS") : N_("Windows"), N_("Other"), N_("Empty")); -- cgit v1.2.1