diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-28 14:26:23 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-28 14:26:23 +0000 |
commit | 8ea5296ecc441656965feed979820a0f8b0e38cd (patch) | |
tree | fdf93b149bb1c14bbb5612385f73e7e4663ade54 /perl-install/fs/partitioning_wizard.pm | |
parent | 8c57553925621c1591e422d9ea40449ca828d1b2 (diff) | |
download | drakx-8ea5296ecc441656965feed979820a0f8b0e38cd.tar drakx-8ea5296ecc441656965feed979820a0f8b0e38cd.tar.gz drakx-8ea5296ecc441656965feed979820a0f8b0e38cd.tar.bz2 drakx-8ea5296ecc441656965feed979820a0f8b0e38cd.tar.xz drakx-8ea5296ecc441656965feed979820a0f8b0e38cd.zip |
put windows max size in max_win variable
Diffstat (limited to 'perl-install/fs/partitioning_wizard.pm')
-rw-r--r-- | perl-install/fs/partitioning_wizard.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 3f1050e8b..eba11df8f 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -182,8 +182,9 @@ When sure, press %s.", N("Next")))) or return; my $oldsize = $part->{size}; if (!$in->isa('interactive::gtk')) { my $mb_size = to_Mb($part->{size}); + my $max_win = $part->{size} - $part->{min_linux}; $in->ask_from(N("Partitionning"), N("Which size do you want to keep for Microsoft Windows® on partition %s?", partition_table::description($part)), [ - { label => N("Size"), val => \$mb_size, min => to_Mb($part->{min_win}), max => to_Mb($part->{size} - $part->{min_linux}), type => 'range' }, + { label => N("Size"), val => \$mb_size, min => to_Mb($part->{min_win}), max => to_Mb($max_win), type => 'range' }, ]) or return; $part->{size} = from_Mb($mb_size, $part->{min_win}, $part->{size}); } else { |