Skip to content
Permalink
Browse files

Escape spaces in MTEXT

  • Loading branch information
mhugent committed Feb 13, 2018
1 parent 3391594 commit 5293044d312a8f2f911b88cdff0a4f65204f08e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/dxf/qgsdxfexport.cpp
@@ -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
@@ -4470,6 +4470,7 @@ void QgsDxfExport::drawLabel( QString layerId, QgsRenderContext& context, pal::L
}

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

if ( tmpLyr.textFont.underline() )
{

0 comments on commit 5293044

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