Skip to content
Permalink
Browse files

Fix #10217 (misaligned markers in composer)

  • Loading branch information
wonder-sk committed May 22, 2014
1 parent bf6effd commit dac4cfc2f4b870e4074f28f6903aac4183c4713d
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/qgsvectorlayerrenderer.cpp
@@ -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();

0 comments on commit dac4cfc

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