From 6d48d2dd82097483091b885be4e39a4306b20dd4 Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 15 Jul 2010 10:24:23 +0000 Subject: [PATCH] bool contains( GLViewer_Pnt pnt ) Changed on bool contains( GLViewer_Pnt pnt ) const --- src/GLViewer/GLViewer_Geom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Geom.h b/src/GLViewer/GLViewer_Geom.h index d0c4cd4ca..6b9f4612d 100644 --- a/src/GLViewer/GLViewer_Geom.h +++ b/src/GLViewer/GLViewer_Geom.h @@ -117,7 +117,7 @@ public: bool isValid() const { return ( myLeft < myRight && myBottom < myTop ); } //! Checks staus of contains point - bool contains( GLViewer_Pnt pnt ) { return ( pnt.x() > left() && + bool contains( GLViewer_Pnt pnt ) const { return ( pnt.x() > left() && pnt.x() < right() && pnt.y() > bottom() && pnt.y() < top() ); } -- 2.39.2