From fcf436c20cfcace0d227f80c48b6e9770fce4fbe Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Sat, 14 Sep 2024 14:24:29 +0700 Subject: [PATCH] [ui][rasters] Fix additional nodata value widget's handling of large double values --- src/gui/raster/qgsrastertransparencywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/raster/qgsrastertransparencywidget.cpp b/src/gui/raster/qgsrastertransparencywidget.cpp index d65bcabe69f6..5ab2bd27ebc8 100644 --- a/src/gui/raster/qgsrastertransparencywidget.cpp +++ b/src/gui/raster/qgsrastertransparencywidget.cpp @@ -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 {