Skip to content

Commit

Permalink
Convert to double instead of float
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <[email protected]>
  • Loading branch information
merydian and nyalldawson authored Jul 11, 2024
1 parent a750d06 commit e42d395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/arcgis/qgsarcgisrestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ QgsFeatureRenderer *QgsArcGisRestUtils::convertRenderer( const QVariantMap &rend
symbolData = classBreakInfos.at( 0 ).toMap().value( QStringLiteral( "symbol" ) ).toMap();
}
std::unique_ptr< QgsSymbol > symbol( QgsArcGisRestUtils::convertSymbol( symbolData ) );
double transparency = rendererData.value( QStringLiteral( "transparency" ) ).toFloat();
double transparency = rendererData.value( QStringLiteral( "transparency" ) ).toDouble();

double opacity = (100.0 - transparency) / 100.0;

Expand Down

0 comments on commit e42d395

Please sign in to comment.