Skip to content

Commit

Permalink
-Updated setYmin/setYmax to setYMinimum/setYMaximum
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9176 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Aug 26, 2008
1 parent aff6fad commit 60c59f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsrect.cpp
Expand Up @@ -135,8 +135,8 @@ QgsRect QgsRect::intersect( QgsRect * rect ) const

intersection.setXMinimum( xmin > rect->xMin() ? xmin : rect->xMin() );
intersection.setXMaximum( xmax < rect->xMax() ? xmax : rect->xMax() );
intersection.setYmin( ymin > rect->yMin() ? ymin : rect->yMin() );
intersection.setYmax( ymax < rect->yMax() ? ymax : rect->yMax() );
intersection.setYMinimum( ymin > rect->yMin() ? ymin : rect->yMin() );
intersection.setYMaximum( ymax < rect->yMax() ? ymax : rect->yMax() );
return intersection;
}

Expand Down Expand Up @@ -292,8 +292,8 @@ void QgsRect::unionRect( const QgsRect& r )
{
if ( r.xMin() < xMin() ) setXMinimum( r.xMin() );
if ( r.xMax() > xMax() ) setXMaximum( r.xMax() );
if ( r.yMin() < yMin() ) setYmin( r.yMin() );
if ( r.yMax() > yMax() ) setYmax( r.yMax() );
if ( r.yMin() < yMin() ) setYMinimum( r.yMin() );
if ( r.yMax() > yMax() ) setYMaximum( r.yMax() );
}

bool QgsRect::isFinite() const
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsrect.h
Expand Up @@ -53,10 +53,10 @@ class CORE_EXPORT QgsRect
void setXMinimum( double x );
//! Set the maximum x value
void setXMaximum( double x );
//! Set the minimum y value
void setYMinimum( double y );
//! Set the maximum y value
void setYmin( double y );
//! Set the maximum y value
void setYmax( double y );
void setYMaximum( double y );
//! Set a rectangle so that min corner is at max
// and max corner is at min. It is NOT normalized.
void setMinimal();
Expand Down

0 comments on commit 60c59f9

Please sign in to comment.