Skip to content
Permalink
Browse files

Fix dxf label size calculation

  • Loading branch information
mhugent committed Jan 17, 2014
1 parent 78bd89d commit 4b60d0983cd7fa3039cb983bbacf1707167ad3ae
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/dxf/qgsdxfpallabeling.cpp
@@ -33,6 +33,8 @@ QgsDxfPalLabeling::QgsDxfPalLabeling( QgsDxfExport* dxf, const QgsRectangle& bbo
double factor = 1000 * dpi / scale / 25.4;
mMapRenderer.setOutputSize( QSizeF( bbox.width() * factor, bbox.height() * factor ), dpi );
mMapRenderer.setScale( scale );
mMapRenderer.setOutputUnits( QgsMapRenderer::Pixels );

//mMapRenderer.setLayer necessary?
init( &mMapRenderer );

@@ -43,6 +45,7 @@ QgsDxfPalLabeling::QgsDxfPalLabeling( QgsDxfExport* dxf, const QgsRectangle& bbo
mRenderContext.setPainter( mPainter );
mRenderContext.setRendererScale( scale );
mRenderContext.setExtent( bbox );
mRenderContext.setScaleFactor( 96.0 / 25.4 );
}

QgsDxfPalLabeling::~QgsDxfPalLabeling()

0 comments on commit 4b60d09

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