Skip to content

Commit

Permalink
Fix line break in dxf label export
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 6, 2014
1 parent 211399c commit c726020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dxf/qgsdxfpallabeling.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit c726020

Please sign in to comment.