Index: trunk/MagicSoft/Cosy/Changelog
===================================================================
--- trunk/MagicSoft/Cosy/Changelog	(revision 4617)
+++ trunk/MagicSoft/Cosy/Changelog	(revision 4699)
@@ -1,3 +1,11 @@
                                                                   -*-*- END -*-*-
+
+ 2004/08/23 - Thomas Bretz
+
+   * videodev/FilterLed.cc:
+     - tried to fix a possible crash in FindStar. Maybe the edges
+       exceeded the area of the image in memory
+
+
 
  2004/08/16 - Thomas Bretz
Index: trunk/MagicSoft/Cosy/videodev/FilterLed.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 4617)
+++ trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 4699)
@@ -367,5 +367,5 @@
     //
     // Define outer box (excluding inner box) having almost
-    // the same nuymber of pixels in which the background
+    // the same number of pixels in which the background
     // is calculated
     //
@@ -391,8 +391,8 @@
 
     int n=0;
-    for (int x=xa; x<xb+1; x++)
-        for (int y=ya; y<yb+1; y++)
-        {
-            if (x>x0 && x<x1 && y>y0 && y<y1)
+    for (int x=xa; x<xb; x++)
+        for (int y=ya; y<yb; y++)
+        {
+            if (x>=x0 && x<x1 && y>=y0 && y<y1)
                 continue;
 
@@ -429,10 +429,10 @@
     // Mark the background region
     //
-    for (int x=xa; x<xb+1; x+=2)
+    for (int x=xa; x<xb; x+=2)
     {
         fImg[ya*fW+x]=0xf0;
         fImg[yb*fW+x]=0xf0;
     }
-    for (int y=ya; y<yb+1; y+=2)
+    for (int y=ya; y<yb; y+=2)
     {
         fImg[y*fW+xa]=0xf0;
