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 b0c519e commit 04ec683a10740b2e65389319ad8fc1e5cd398f93
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/dxf/qgsdxfexport.cpp
@@ -4101,6 +4101,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 04ec683

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