mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix #10595 (symbol units not applied when loading symbol from library)
This commit is contained in:
parent
52e9ee5d26
commit
8b1f537238
@ -300,6 +300,7 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
|
||||
lblSymbolName->setText( symbolName );
|
||||
// get new instance of symbol from style
|
||||
QgsSymbolV2* s = mStyle->symbol( symbolName );
|
||||
QgsSymbolV2::OutputUnit unit = s->outputUnit();
|
||||
// remove all symbol layers from original symbol
|
||||
while ( mSymbol->symbolLayerCount() )
|
||||
mSymbol->deleteSymbolLayer( 0 );
|
||||
@ -310,7 +311,7 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
|
||||
mSymbol->appendSymbolLayer( sl );
|
||||
}
|
||||
mSymbol->setAlpha( s->alpha() );
|
||||
mSymbol->setOutputUnit( s->outputUnit() );
|
||||
mSymbol->setOutputUnit( unit );
|
||||
// delete the temporary symbol
|
||||
delete s;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user