Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:qgis/Quantum-GIS

  • Loading branch information
etiennesky committed Aug 28, 2012
2 parents 2a3d09c + d2a18c2 commit 126932f09d79c74e966fe87205cc94f003e38e4a
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/core/qgsdiagramrendererv2.cpp
@@ -184,13 +184,7 @@ void QgsDiagramRendererV2::convertSizeToMapUnits( QSizeF& size, const QgsRenderC
return;
}

int dpi = dpiPaintDevice( context.constPainter() );
if ( dpi < 0 )
{
return;
}

double pixelToMap = dpi / 25.4 * context.mapToPixel().mapUnitsPerPixel();
double pixelToMap = context.scaleFactor() * context.mapToPixel().mapUnitsPerPixel();
size.rwidth() *= pixelToMap;
size.rheight() *= pixelToMap;
}

0 comments on commit 126932f

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