From 3db9fb358a5fe3111010d27b0a7f8be896754b01 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 28 Oct 2009 16:05:50 +0000 Subject: fix ratio (and thus size) estimation when resizing windows partition --- 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 a4f79a43b..ad23d8b9a 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -298,7 +298,6 @@ sub create_display_box { #- ratio used to compute initial partition pixel width (each partition should be > min_width) #- 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; my $vbox = Gtk2::VBox->new; @@ -319,6 +318,7 @@ sub create_display_box { $part = $last; } if ($part) { + my $ratio = $part->{width} / $part->{size}; $ev->set_name("PART_vfat"); $w->set_size_request(ceil($ratio * $part->{min_win}), 0); my $ev2 = Gtk2::EventBox->new; -- cgit v1.2.1