summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index 7a446ad8b..888af4630 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -271,7 +271,7 @@ sub create_automatic_notebooks {
sub create_buttons4partitions {
my ($kind, $totalsectors, @parts) = @_;
- $width = max($width, 0.9 * second($w->{window}->window->get_size)) if $w->{window}->window;
+ $width = max($width, 0.9 * first($w->{window}->window->get_size)) if $w->{window}->window;
my $ratio = $totalsectors ? ($width - @parts * $minwidth) / $totalsectors : 1;
while (1) {