Skip to content
Permalink
Browse files

[symbology] respect mixed unit when applying symbol from list widget (#…

  • Loading branch information
nirvn authored and wonder-sk committed Nov 22, 2016
1 parent 33caf66 commit 0c58555c435d6b54f4e39a606970b4f71db01baa
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/symbology-ng/qgssymbolslistwidget.cpp
@@ -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 );
@@ -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;

0 comments on commit 0c58555

Please sign in to comment.
You can’t perform that action at this time.