From 162b1b2feb7ff50a62e7280b9ea2e43894eaa312 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 6 Feb 2011 16:34:26 +0000 Subject: [PATCH] Fixed bug in signal checking - http://www.zoneminder.com/forums/viewtopic.php?t=17158 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3287 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_monitor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 1dddd9142..bf74dd4ce 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1023,8 +1023,7 @@ bool Monitor::CheckSignal( const Image *image ) if ( !config.timestamp_on_capture || !label_format[0] ) break; // Avoid sampling the rows with timestamp in - int y = index / (width * colours); - if ( y < label_coord.Y() || y <= label_coord.Y()+Image::LINE_HEIGHT ) + if ( index < (label_coord.Y()*width) || index >= (label_coord.Y()+Image::LINE_HEIGHT)*width ) break; } const unsigned char *ptr = buffer+(index*colours);