Index: trunk/MagicSoft/Cosy/videodev/FilterLed.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 4105)
+++ 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;
