Skip to content

Commit

Permalink
Fix missing mSymbolType copy in QgsSymbolWidgetContext copies
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 22dda85 commit 78779a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/symbology/qgssymbolwidgetcontext.cpp
Expand Up @@ -23,6 +23,7 @@ QgsSymbolWidgetContext::QgsSymbolWidgetContext( const QgsSymbolWidgetContext &ot
: mMapCanvas( other.mMapCanvas )
, mMessageBar( other.mMessageBar )
, mAdditionalScopes( other.mAdditionalScopes )
, mSymbolType( other.mSymbolType )
{
if ( other.mExpressionContext )
{
Expand All @@ -35,6 +36,7 @@ QgsSymbolWidgetContext &QgsSymbolWidgetContext::operator=( const QgsSymbolWidget
mMapCanvas = other.mMapCanvas;
mMessageBar = other.mMessageBar;
mAdditionalScopes = other.mAdditionalScopes;
mSymbolType = other.mSymbolType;
if ( other.mExpressionContext )
{
mExpressionContext.reset( new QgsExpressionContext( *other.mExpressionContext ) );
Expand Down

0 comments on commit 78779a5

Please sign in to comment.