diff options
author | matthew <matthew> | 2008-01-25 17:05:00 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-01-25 17:05:00 +0000 |
commit | 9e9f283570fcb18ac0840c0c7022fd3cad49d623 (patch) | |
tree | 241583c98b0acbe8c0983c357ccb1b996fb9a70c | |
parent | d3334bfb4e61d6aeb5ca36558f40177ca15cb834 (diff) |
Typo.
-rwxr-xr-x | web/index.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/index.cgi b/web/index.cgi index 77374d1c4..9caacb46b 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.172 2008-01-25 17:02:29 matthew Exp $ +# $Id: index.cgi,v 1.173 2008-01-25 17:05:00 matthew Exp $ use strict; use Standard; @@ -377,8 +377,8 @@ sub display_form { # Map was clicked on $pin_x = Page::click_to_tile($pin_tile_x, $pin_x); $pin_y = Page::click_to_tile($pin_tile_y, $pin_y, 1); - $input{x} ||= $pin_x-1; - $input{y} ||= $pin_y-1; + $input{x} ||= int($pin_x) - 1; + $input{y} ||= int($pin_y) - 1; $px = Page::tile_to_px($pin_x, $input{x}); $py = Page::tile_to_px($pin_y, $input{y}); $easting = Page::tile_to_os($pin_x); |