Skip to content
Permalink
Browse files

Fix diagram legend symbol selector missing associated layer (refs #16164

)
  • Loading branch information
nyalldawson committed Feb 14, 2017
1 parent 852b1df commit 3230e7bcbff7c07fe23adbe05fe965040c36d0d1
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/qgsdiagramproperties.cpp
@@ -939,7 +939,13 @@ void QgsDiagramProperties::on_mPlacementComboBox_currentIndexChanged( int index
void QgsDiagramProperties::on_mButtonSizeLegendSymbol_clicked()
{
QgsMarkerSymbol* newSymbol = mSizeLegendSymbol->clone();
QgsSymbolSelectorDialog d( newSymbol, QgsStyle::defaultStyle(), nullptr, this );
QgsSymbolWidgetContext context;
context.setMapCanvas( mMapCanvas );
QgsExpressionContext ec = createExpressionContext();
context.setExpressionContext( &ec );

QgsSymbolSelectorDialog d( newSymbol, QgsStyle::defaultStyle(), mLayer, this );
d.setContext( context );

if ( d.exec() == QDialog::Accepted )
{

0 comments on commit 3230e7b

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