Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Tk::Tiler #878

Closed
p5pRT opened this issue Nov 19, 1999 · 1 comment
Closed

Bug in Tk::Tiler #878

p5pRT opened this issue Nov 19, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Nov 19, 1999

Migrated from rt.perl.org#1810 (status was 'resolved')

Searchable as RT1810$

@p5pRT
Copy link
Author

p5pRT commented Nov 19, 1999

From avni_haim@emc.com

This is a bug report for perl from avni@​emc.com,
generated with the help of perlbug 1.26 running under perl 5.00503.


[Please enter your report here]
The bug​: Scrolled Tiler does not scroll properly.

The fix​: use int where $cols and $rows are calculated in Tiler.pm​:

  my $cols = $m->{Cols} = int(($W-2*$bw)/$w) || 1;
  my $rows = $m->{Rows} = int(($H-2*$bw)/$h) || 1;
  my $need = $m->{Need} = int( (@​{$m->{Slaves}}+$cols-1)/$cols );
  $m->{Start} = ($need - $rows) if ($m->{Start} + $rows > $need);
  $m->{Start} = 0 if ($m->{Start} < 0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant