Skip to content

Commit

Permalink
[BUGFIX] QgsRasterLayerProperties::transparencyCellValue(): return Na…
Browse files Browse the repository at this point in the history
…N when lineedit is empty
  • Loading branch information
rouault committed May 29, 2020
1 parent 9bf3546 commit 218a10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterlayerproperties.cpp
Expand Up @@ -1669,7 +1669,7 @@ double QgsRasterLayerProperties::transparencyCellValue( int row, int column )
QLineEdit *lineEdit = dynamic_cast<QLineEdit *>( tableTransparency->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();
}
Expand Down

0 comments on commit 218a10c

Please sign in to comment.