From: sln Date: Thu, 15 Jul 2010 10:24:23 +0000 (+0000) Subject: bool contains( GLViewer_Pnt pnt ) X-Git-Tag: DIAGRAM_0_1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d48d2dd82097483091b885be4e39a4306b20dd4;p=modules%2Fgui.git bool contains( GLViewer_Pnt pnt ) Changed on bool contains( GLViewer_Pnt pnt ) const --- 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() ); }