summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-28 16:05:50 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-28 16:05:50 +0000
commit3db9fb358a5fe3111010d27b0a7f8be896754b01 (patch)
treee02ebbd1dc9f3383feb6a4d5e81321aacc23c5db /perl-install/fs
parent3c55ae215572e4b490e564234adac06ec3855b3c (diff)
downloaddrakx-backup-do-not-use-3db9fb358a5fe3111010d27b0a7f8be896754b01.tar
drakx-backup-do-not-use-3db9fb358a5fe3111010d27b0a7f8be896754b01.tar.gz
drakx-backup-do-not-use-3db9fb358a5fe3111010d27b0a7f8be896754b01.tar.bz2
drakx-backup-do-not-use-3db9fb358a5fe3111010d27b0a7f8be896754b01.tar.xz
drakx-backup-do-not-use-3db9fb358a5fe3111010d27b0a7f8be896754b01.zip
fix ratio (and thus size) estimation when resizing windows partition
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/partitioning_wizard.pm2
1 files changed, 1 insertions, 1 deletions
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;