mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[BUGFIX] QgsRasterLayerSaveAsDialog::noDataCellValue(): return NaN when lineedit is empty
This commit is contained in:
parent
1501dc7571
commit
9677b42f23
@ -852,7 +852,7 @@ double QgsRasterLayerSaveAsDialog::noDataCellValue( int row, int column ) const
|
||||
QLineEdit *lineEdit = dynamic_cast<QLineEdit *>( mNoDataTableWidget->cellWidget( row, column ) );
|
||||
if ( !lineEdit || lineEdit->text().isEmpty() )
|
||||
{
|
||||
std::numeric_limits<double>::quiet_NaN();
|
||||
return std::numeric_limits<double>::quiet_NaN();
|
||||
}
|
||||
return lineEdit->text().toDouble();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user