Skip to content

Commit

Permalink
[ui][rasters] Fix additional nodata value widget's handling of large …
Browse files Browse the repository at this point in the history
…double values
  • Loading branch information
nirvn authored and nyalldawson committed Sep 14, 2024
1 parent 6d95bfe commit fcf436c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrastertransparencywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void QgsRasterTransparencyWidget::syncToLayer()
if ( !noDataRangeList.isEmpty() )
{
const double v = QgsRasterBlock::printValue( noDataRangeList.value( 0 ).min() ).toDouble();
leNoDataValue->setText( QLocale().toString( v ) );
leNoDataValue->setText( QLocale().toString( v, 'g', 20 ) );
}
else
{
Expand Down

0 comments on commit fcf436c

Please sign in to comment.