Skip to content
Permalink
Browse files

Fix displacement renderer when using map unit sizes for symbols

  • Loading branch information
nyalldawson committed Jun 16, 2016
1 parent a6f96ba commit 8868303dbd4fad26eeb88bc5a18ba3ffe5a0e719
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgspointdisplacementrenderer.cpp
@@ -185,7 +185,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() ) );
}
}

@@ -575,7 +575,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 8868303

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