Skip to content

Commit

Permalink
Update qgssymbol.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Mar 11, 2024
1 parent b250069 commit 174c069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgssymbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ void QgsSymbol::drawPreviewIcon( QPainter *painter, QSize size, QgsRenderContext
const bool prevForceVector = context->forceVectorOutput();
context->setForceVectorOutput( true );

const double opacity = expressionContext ? dataDefinedProperties().valueAsDouble( QgsSymbol::Property::Opacity, *expressionContext, mOpacity ) : mOpacity;
const double opacity = expressionContext ? dataDefinedProperties().valueAsDouble( QgsSymbol::Property::Opacity, *expressionContext, mOpacity * 100 ) * 0.01 : mOpacity;

QgsSymbolRenderContext symbolContext( *context, Qgis::RenderUnit::Unknown, opacity, false, mRenderHints, nullptr );
symbolContext.setSelected( selected );
Expand Down

0 comments on commit 174c069

Please sign in to comment.