Skip to content
Permalink
Browse files

fix wrong scale method with constant expressions

fix #13571
  • Loading branch information
vmora authored and nyalldawson committed Dec 3, 2015
1 parent 18c52ab commit 701d970862172b24ec1086d8f2c517a8992f2666
@@ -489,7 +489,7 @@ QgsMarkerSymbolLayerV2::QgsMarkerSymbolLayerV2( bool locked )
, mSize( 2.0 )
, mSizeUnit( QgsSymbolV2::MM )
, mOffsetUnit( QgsSymbolV2::MM )
, mScaleMethod( QgsSymbolV2::ScaleArea )
, mScaleMethod( QgsSymbolV2::ScaleDiameter )
, mHorizontalAnchorPoint( HCenter )
, mVerticalAnchorPoint( VCenter )
{
@@ -499,6 +499,7 @@ QgsDataDefined QgsDataDefinedSizeDialog::symbolDataDefined( const QgsSymbolV2 *s
void QgsDataDefinedSizeDialog::setDataDefined( QgsSymbolV2* symbol, const QgsDataDefined& dd )
{
static_cast<QgsMarkerSymbolV2*>( symbol )->setDataDefinedSize( dd );
static_cast<QgsMarkerSymbolV2*>( symbol )->setScaleMethod( QgsSymbolV2::ScaleDiameter );
}


@@ -291,6 +291,7 @@ void QgsSymbolsListWidget::updateDataDefinedMarkerSize()
|| !isDefault )
{
markerSymbol->setDataDefinedSize( dd );
markerSymbol->setScaleMethod( QgsSymbolV2::ScaleDiameter );
emit changed();
}
}

0 comments on commit 701d970

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