Skip to content

Commit

Permalink
[symbology] respect mixed unit when applying symbol from list widget (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and wonder-sk committed Nov 22, 2016
1 parent 33caf66 commit 0c58555
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/symbology-ng/qgssymbolslistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
lblSymbolName->setText( symbolName );
// get new instance of symbol from style
QgsSymbol* s = mStyle->symbol( symbolName );
QgsUnitTypes::RenderUnit unit = s->outputUnit();
// remove all symbol layers from original symbolgroupsCombo
while ( mSymbol->symbolLayerCount() )
mSymbol->deleteSymbolLayer( 0 );
Expand All @@ -593,7 +592,7 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
mSymbol->appendSymbolLayer( sl );
}
mSymbol->setAlpha( s->alpha() );
mSymbol->setOutputUnit( unit );

// delete the temporary symbol
delete s;

Expand Down

0 comments on commit 0c58555

Please sign in to comment.