Navigation Menu

Skip to content

Commit

Permalink
Fix #10217 (misaligned markers in composer)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed May 22, 2014
1 parent bf6effd commit dac4cfc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/qgsvectorlayerrenderer.cpp
Expand Up @@ -120,9 +120,7 @@ bool QgsVectorLayerRenderer::render()
// enable the simplification of the geometries (Using the current map2pixel context) before send it to renderer engine.
if ( mSimplifyGeometry )
{
QPainter* p = mContext.painter();
double dpi = ( p->device()->logicalDpiX() + p->device()->logicalDpiY() ) / 2;
double map2pixelTol = mSimplifyMethod.threshold() * 96.0f / dpi;
double map2pixelTol = mSimplifyMethod.threshold();

const QgsMapToPixel& mtp = mContext.mapToPixel();
map2pixelTol *= mtp.mapUnitsPerPixel();
Expand Down

0 comments on commit dac4cfc

Please sign in to comment.