Skip to content

Commit

Permalink
Fix diagram scaling for print
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hugentobler committed Aug 28, 2012
1 parent fcf1dd8 commit d2a18c2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/qgsdiagramrendererv2.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit d2a18c2

Please sign in to comment.