Skip to content
Permalink
Browse files
Fix for dxf label export
  • Loading branch information
mhugent committed Feb 3, 2014
1 parent f18a090 commit f45e1123440fb8c0a1b8fc61f06a5c68b9c11521
Showing with 1 addition and 1 deletion.
  1. +0 −1 src/core/dxf/qgsdxfexport.cpp
  2. +1 −0 src/core/dxf/qgsdxfpallabeling.cpp
@@ -581,7 +581,6 @@ void QgsDxfExport::writeEntities()
QgsFeatureRendererV2* renderer = vl->rendererV2();
renderer->startRender( ctx, vl );

//todo: call mLabeling.prepareLayer(...)
QSet<int> attrIndex;
bool labelLayer = ( labelEngine.prepareLayer( vl, attrIndex, ctx ) != 0 );

@@ -43,6 +43,7 @@ QgsDxfPalLabeling::QgsDxfPalLabeling( QgsDxfExport* dxf, const QgsRectangle& bbo
mRenderContext.setRendererScale( scale );
mRenderContext.setExtent( bbox );
mRenderContext.setScaleFactor( 96.0 / 25.4 );
mRenderContext.setMapToPixel( QgsMapToPixel( 1.0 / factor, bbox.xMinimum(), bbox.yMinimum(), bbox.height() * factor ) );
}

QgsDxfPalLabeling::~QgsDxfPalLabeling()

0 comments on commit f45e112

Please sign in to comment.