Skip to content

Commit

Permalink
Fix displacement renderer when using map unit sizes for symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 16, 2016
1 parent a6f96ba commit 8868303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology-ng/qgspointdisplacementrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) );
}
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8868303

Please sign in to comment.