Skip to content
Permalink
Browse files

Apply suggestions from code review

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 69e399074f0de3645ac38ed6a0f9cffb7016d9e6
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/gui/qgsextentwidget.cpp
  2. +3 −3 src/gui/qgsrasterlayersaveasdialog.cpp
@@ -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 )
@@ -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
@@ -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 )

0 comments on commit 69e3990

Please sign in to comment.