Skip to content
Permalink
Browse files
Fix line break in dxf label export
  • Loading branch information
mhugent committed Jun 6, 2014
1 parent 211399c commit c7260200c174dbde0ca26adc397f14f828622b3a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/dxf/qgsdxfpallabeling.cpp
@@ -91,7 +91,7 @@ void QgsDxfPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext&
}
mDxfExport->writePolyline( line, layerName, "CONTINUOUS", 1, 0.01, true );*/

QStringList textList = text.split( "\n" );
QStringList textList = text.split( tmpLyr.wrapChar );
double textHeight = label->getHeight() / textList.size();
QFontMetricsF fm( tmpLyr.textFont );
double textAscent = textHeight * fm.ascent() / fm.height();

0 comments on commit c726020

Please sign in to comment.