Skip to content

Commit 04ec683

Browse files
committedJun 18, 2016
[DXF export] Replace newline character in layer name by underscore
Fixes #15067
1 parent b0c519e commit 04ec683

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/core/dxf/qgsdxfexport.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4101,6 +4101,11 @@ QString QgsDxfExport::dxfLayerName( const QString& name )
41014101
layerName.replace( '=', '_' );
41024102
layerName.replace( '\'', '_' );
41034103

4104+
// also remove newline characters (#15067)
4105+
layerName.replace( "\r\n", "_" );
4106+
layerName.replace( '\r', '_' );
4107+
layerName.replace( '\n', '_' );
4108+
41044109
return layerName.trimmed();
41054110
}
41064111

0 commit comments

Comments
 (0)
Please sign in to comment.