Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
(cherry picked from commit 6e941f1)
  • Loading branch information
elpaso authored and nyalldawson committed Feb 19, 2021
1 parent bee54fb commit 69e3990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsextentwidget.cpp
Expand Up @@ -416,8 +416,8 @@ void QgsExtentWidget::extentDrawn( const QgsRectangle &extent )

QgsRectangle QgsExtentWidget::outputExtent() const
{
return QgsRectangle( QLocale().toDouble( mXMinLineEdit->text() ), QLocale().toDouble( mYMinLineEdit->text() ),
QLocale().toDouble( mXMaxLineEdit->text() ), QLocale().toDouble( mYMaxLineEdit->text() ) );
return QgsRectangle( QgsDoubleValidator::toDouble( mXMinLineEdit->text() ), QgsDoubleValidator::toDouble( mYMinLineEdit->text() ),
QgsDoubleValidator::toDouble( mXMaxLineEdit->text() ), QgsDoubleValidator::toDouble( mYMaxLineEdit->text() ) );
}

void QgsExtentWidget::setMapCanvas( QgsMapCanvas *canvas )
Expand Down
6 changes: 3 additions & 3 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Expand Up @@ -354,12 +354,12 @@ int QgsRasterLayerSaveAsDialog::nRows() const

double QgsRasterLayerSaveAsDialog::xResolution() const
{
return QLocale().toDouble( mXResolutionLineEdit->text() );
return QgsDoubleValidator::toDouble( mXResolutionLineEdit->text() );
}

double QgsRasterLayerSaveAsDialog::yResolution() const
{
return QLocale().toDouble( mYResolutionLineEdit->text() );
return QgsDoubleValidator::toDouble( mYResolutionLineEdit->text() );
}

int QgsRasterLayerSaveAsDialog::maximumTileSizeX() const
Expand Down Expand Up @@ -855,7 +855,7 @@ double QgsRasterLayerSaveAsDialog::noDataCellValue( int row, int column ) const
{
return std::numeric_limits<double>::quiet_NaN();
}
return QLocale().toDouble( lineEdit->text() );
return QgsDoubleValidator::toDouble( lineEdit->text() );
}

void QgsRasterLayerSaveAsDialog::adjustNoDataCellWidth( int row, int column )
Expand Down

0 comments on commit 69e3990

Please sign in to comment.