From 8ccb4ed373066141191cd31ae1c72839d8229697 Mon Sep 17 00:00:00 2001 From: stan Date: Mon, 8 May 2006 12:56:43 +0000 Subject: [PATCH] Bug 331 - Fixed so that zones are constrained to legal range when drawing. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1970 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_zone.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/zm_html_view_zone.php b/web/zm_html_view_zone.php index e625e363f..109d14dae 100644 --- a/web/zm_html_view_zone.php +++ b/web/zm_html_view_zone.php @@ -548,8 +548,8 @@ function updateActivePoint( event ) var x_point, y_point; if ( event ) { - x = event.layerX; - y = event.layerY; + x = event.layerX-1; + y = event.layerY-1; } else { @@ -626,7 +626,7 @@ function saveChanges() -
-