Skip to content

Commit 299768e

Browse files
committed
stop uninit warning in ButtonControl
1 parent f560504 commit 299768e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PDL/Graphics/TriD/ButtonControl.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ sub ButtonPress{
9393
#
9494
# GL (0,0) point is Lower left X and Tk is upper left.
9595
#
96-
$y = $PDL::Graphics::TriD::current_window->{Height}-$y;
96+
$y = $PDL::Graphics::TriD::current_window->{Height}-($y//0);
9797

9898
# print "$x $y ",$this->{Win}{X0}," ",$this->{Win}{Y0}," ",$this->{Win}{W}," ",$this->{Win}{H},"\n";
9999

0 commit comments

Comments
 (0)