Skip to content
Permalink
Browse files

Fix displacement renderer when using map unit sizes for symbols

(cherry-picked from 8868303)
  • Loading branch information
nyalldawson committed Jul 1, 2016
1 parent c33b7ad commit 4235f9ecfe07a40edc61e35dfd8700f82c6213f1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgspointdisplacementrenderer.cpp
@@ -183,7 +183,7 @@ void QgsPointDisplacementRenderer::drawGroup( const DisplacementGroup& group, Qg
{
diagonal = qMax( diagonal, QgsSymbolLayerV2Utils::convertToPainterUnits( context,
M_SQRT2 * symbol->size(),
symbol->outputUnit(), symbol->mapUnitScale() ) );
symbol->sizeUnit(), symbol->sizeMapUnitScale() ) );
}
}

@@ -573,7 +573,7 @@ void QgsPointDisplacementRenderer::calculateSymbolAndLabelPositions( QgsSymbolV2
{
double centerDiagonal = QgsSymbolLayerV2Utils::convertToPainterUnits( symbolContext.renderContext(),
M_SQRT2 * mCenterSymbol->size(),
mCenterSymbol->outputUnit(), mCenterSymbol->mapUnitScale() );
mCenterSymbol->sizeUnit(), mCenterSymbol->sizeMapUnitScale() );

int pointsRemaining = nPosition;
int ringNumber = 1;

0 comments on commit 4235f9e

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