Skip to content

Commit

Permalink
Use qIsInf instead of isinf
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 17, 2016
1 parent f3637b1 commit 9a96252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsscalerangewidget.cpp
Expand Up @@ -90,7 +90,7 @@ void QgsScaleRangeWidget::setMapCanvas( QgsMapCanvas *mapCanvas )

void QgsScaleRangeWidget::setMinimumScale( double scale )
{
if ( isinf( scale ) )
if ( qIsInf( scale ) )
scale = 0;
mMinimumScaleWidget->setScale( scale );
}
Expand All @@ -102,7 +102,7 @@ double QgsScaleRangeWidget::minimumScale()

void QgsScaleRangeWidget::setMaximumScale( double scale )
{
if ( isinf( scale ) )
if ( qIsInf( scale ) )
scale = 0;
mMaximumScaleWidget->setScale( scale );
}
Expand Down

0 comments on commit 9a96252

Please sign in to comment.