Skip to content

Commit 9731d84

Browse files
committed
dxf export: trim whitespace from layernames
(cherry picked from commit 36267f5)
1 parent 80c5cb6 commit 9731d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/dxf/qgsdxfexport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4098,7 +4098,7 @@ QString QgsDxfExport::dxfLayerName( const QString& name )
40984098
layerName.replace( "=", "_" );
40994099
layerName.replace( "\'", "_" );
41004100

4101-
return layerName;
4101+
return layerName.trimmed();
41024102
}
41034103

41044104
bool QgsDxfExport::layerIsScaleBasedVisible( const QgsMapLayer* layer ) const

0 commit comments

Comments
 (0)