Skip to content
Permalink
Browse files

Use qIsInf instead of isinf

  • Loading branch information
m-kuhn committed Oct 17, 2016
1 parent f3637b1 commit 9a962524cae2010d1e22e3e28d081bc057c1134d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsscalerangewidget.cpp
@@ -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 );
}
@@ -102,7 +102,7 @@ double QgsScaleRangeWidget::minimumScale()

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

0 comments on commit 9a96252

Please sign in to comment.
You can’t perform that action at this time.