From b16bd9930aa06c25b82a9c495b53e98c29c6b7b8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 28 Oct 2009 16:01:27 +0000 Subject: remove broken ratio downgrading --- perl-install/fs/partitioning_wizard.pm | 5 ----- 1 file changed, 5 deletions(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 4cd8f3b24..857354470 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -299,11 +299,6 @@ sub create_display_box { #- though, the pixel/sectors ratio can not be the same for all the partitions my $initial_ratio = $totalsectors ? ($width - @parts * $minwidth - $sep_count) / $totalsectors : 1; my $ration = $initial_ratio; - while (1) { - my $totalwidth = sum(map { $_->{size} * $ratio + $minwidth } @parts); - $totalwidth <= $width and last; - $ratio /= $totalwidth / $width * 1.1; - } my $vbox = Gtk2::VBox->new; -- cgit v1.2.1