Skip to content
Permalink
Browse files

[DXF export] Replace newline character in layer name by underscore

Fixes #15067
  • Loading branch information
rouault committed Jun 18, 2016
1 parent 6bc0313 commit 8f62a573014ed7d074eeb4455218261832896b43
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/dxf/qgsdxfexport.cpp
@@ -4212,6 +4212,11 @@ QString QgsDxfExport::dxfLayerName( const QString& name )
layerName.replace( '=', '_' );
layerName.replace( '\'', '_' );

// also remove newline characters (#15067)
layerName.replace( "\r\n", "_" );
layerName.replace( '\r', '_' );
layerName.replace( '\n', '_' );

return layerName.trimmed();
}

0 comments on commit 8f62a57

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