Skip to content

Commit

Permalink
Escape spaces in MTEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 13, 2018
1 parent 3391594 commit 5293044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -3723,7 +3723,7 @@ void QgsDxfExport::writeMText( const QString& layer, const QString& text, const
writeGroup( 3, t.left( 250 ) );
t = t.mid( 250 );
}
writeGroup( 1, text );
writeGroup( 1, t );

writeGroup( 50, angle ); // Rotation angle in radians
writeGroup( 41, width * 1.1 ); // Reference rectangle width
Expand Down Expand Up @@ -4470,6 +4470,7 @@ void QgsDxfExport::drawLabel( QString layerId, QgsRenderContext& context, pal::L
}

txt = txt.replace( wrapchr, "\\P" );
txt.replace( " ", "\\~" );

if ( tmpLyr.textFont.underline() )
{
Expand Down

0 comments on commit 5293044

Please sign in to comment.