Skip to content

Commit

Permalink
fix #12876: data-defined size was too small
Browse files Browse the repository at this point in the history
The scale methos "by area" was still defined at the symbol level causing
an extra sqare root to be applied to the size.
  • Loading branch information
vmora committed Jun 5, 2015
1 parent 9d38b71 commit 65a57ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgsrendererv2.cpp
Expand Up @@ -675,6 +675,7 @@ void QgsFeatureRendererV2::convertSymbolSizeScale( QgsSymbolV2 * symbol, QgsSymb
const QgsDataDefined dd( QString::number( s->size() ) + " * (" + field + ")" );
s->setDataDefinedSize( dd );
}
s->setScaleMethod( QgsSymbolV2::ScaleDiameter );
}
else if ( symbol->type() == QgsSymbolV2::Line )
{
Expand Down

0 comments on commit 65a57ed

Please sign in to comment.