Skip to content

Commit 8b1f537

Browse files
committed
Fix #10595 (symbol units not applied when loading symbol from library)
1 parent 52e9ee5 commit 8b1f537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/symbology-ng/qgssymbolslistwidget.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
300300
lblSymbolName->setText( symbolName );
301301
// get new instance of symbol from style
302302
QgsSymbolV2* s = mStyle->symbol( symbolName );
303+
QgsSymbolV2::OutputUnit unit = s->outputUnit();
303304
// remove all symbol layers from original symbol
304305
while ( mSymbol->symbolLayerCount() )
305306
mSymbol->deleteSymbolLayer( 0 );
@@ -310,7 +311,7 @@ void QgsSymbolsListWidget::setSymbolFromStyle( const QModelIndex & index )
310311
mSymbol->appendSymbolLayer( sl );
311312
}
312313
mSymbol->setAlpha( s->alpha() );
313-
mSymbol->setOutputUnit( s->outputUnit() );
314+
mSymbol->setOutputUnit( unit );
314315
// delete the temporary symbol
315316
delete s;
316317

0 commit comments

Comments
 (0)