diff --git a/graf/src/TBox.cxx b/graf/src/TBox.cxx
index 2e45e84c1a40cf44042e73d4c576363e7ba21506..164563f88f8437edfdad936241b594f864ac88e4 100644
--- a/graf/src/TBox.cxx
+++ b/graf/src/TBox.cxx
@@ -1,4 +1,4 @@
-// @(#)root/graf:$Name:  $:$Id: TBox.cxx,v 1.9 2002/01/23 17:52:48 rdm Exp $
+// @(#)root/graf:$Name:  $:$Id: TBox.cxx,v 1.10 2002/01/24 11:39:28 rdm Exp $
 // Author: Rene Brun   12/12/94
 
 /*************************************************************************
@@ -116,7 +116,7 @@ Int_t TBox::DistancetoPrimitive(Int_t px, Int_t py)
 //*-*- Are we inside the box?
 //*-*  ======================
    if (GetFillStyle()) {
-      if ( (px > pxl && px < pxt) && (py > pyl && py < pyt) ) return 0;
+      if ( (px >= pxl && px <= pxt) && (py >= pyl && py <= pyt) ) return 0;
       else return 9999;
    }