diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-08-09 08:59:51 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-08-09 08:59:51 +0000 |
commit | a427ad1fd558f16c9683c4b1a9861332948912f8 (patch) | |
tree | ac04c8f3a57ac8f8009b17b0aa974744631e300a /dbaccess/source/ui/querydesign/ConnectionLine.cxx | |
parent | adb9ad0e1f51feb63927e0cd16d8edb47265beb7 (diff) |
#90681# check which alias names are no longer in the list and remove them
Diffstat (limited to 'dbaccess/source/ui/querydesign/ConnectionLine.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/ConnectionLine.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dbaccess/source/ui/querydesign/ConnectionLine.cxx b/dbaccess/source/ui/querydesign/ConnectionLine.cxx index 71d386f96271..c1e074b4647f 100644 --- a/dbaccess/source/ui/querydesign/ConnectionLine.cxx +++ b/dbaccess/source/ui/querydesign/ConnectionLine.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ConnectionLine.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: oj $ $Date: 2001-04-30 13:02:01 $ + * last change: $Author: oj $ $Date: 2001-08-09 09:59:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -464,7 +464,7 @@ double dist_Euklid(const Point &p1, const Point& p2,const Point& pM, Point& q) return l; } //------------------------------------------------------------------------ -BOOL OConnectionLine::CheckHit( const Point& rMousePos ) +bool OConnectionLine::CheckHit( const Point& rMousePos ) const { ////////////////////////////////////////////////////////////////////// /* @@ -477,10 +477,11 @@ BOOL OConnectionLine::CheckHit( const Point& rMousePos ) { if(::std::min(m_aSourceConnPos.X(),m_aDestConnPos.X()) <= q.X() && ::std::min(m_aSourceConnPos.Y(),m_aDestConnPos.Y()) <= q.Y() && q.X() <= ::std::max(m_aDestConnPos.X(),m_aSourceConnPos.X()) && q.Y() <= ::std::max(m_aDestConnPos.Y(),m_aSourceConnPos.Y())) - return TRUE; + return true; } - return FALSE; + return false; } +// ----------------------------------------------------------------------------- |