Skip to content
Permalink
Browse files

Fix diagram scaling for print

  • Loading branch information
Marco Hugentobler authored and m-kuhn committed Aug 28, 2012
1 parent 573d57f commit 8f891c5e742205e095b8ae8daddc6213eef0e5e2
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/core/qgsdiagramrendererv2.cpp
@@ -283,13 +283,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 8f891c5

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