From 6ba726e0a1b4fd56b66fc51559af6e626a61d475 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Thu, 4 Apr 2002 07:07:54 +0000
Subject: [PATCH] Fix suggested by Brett Wiren: The test for "insideness" in
 TBox::DistancetoPrimitive in the case of a filled TBox misses the TBox's very
 edge.  This causes 1 pixel wide/tall TBoxes to be invisible to pointer
 interactions.

git-svn-id: http://root.cern.ch/svn/root/trunk@4306 27541ba8-7e3a-0410-8455-c3a389f83636
---
 graf/src/TBox.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/graf/src/TBox.cxx b/graf/src/TBox.cxx
index 2e45e84c1a4..164563f88f8 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;
    }
 
-- 
GitLab