]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
bool contains( GLViewer_Pnt pnt )
authorsln <sln@opencascade.com>
Thu, 15 Jul 2010 10:24:23 +0000 (10:24 +0000)
committersln <sln@opencascade.com>
Thu, 15 Jul 2010 10:24:23 +0000 (10:24 +0000)
Changed on

bool contains( GLViewer_Pnt pnt ) const

src/GLViewer/GLViewer_Geom.h

index d0c4cd4caf9f4895a45b1995734260450288bf1b..6b9f4612dd9aff986337e8d7be1e9f4ddc7e4662 100644 (file)
@@ -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() ); }