Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dxf export: add extension (fixes #9544)
  • Loading branch information
jef-n committed Feb 12, 2014
1 parent 4488551 commit 9d379f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -3877,7 +3877,10 @@ void QgisApp::dxfExport()
}
}

QFile dxfFile( d.saveFile() );
QString fileName( d.saveFile() );
if ( !fileName.endsWith( ".dxf", Qt::CaseInsensitive ) )
fileName += ".dxf";
QFile dxfFile( fileName );
if ( dxfExport.writeToFile( &dxfFile ) == 0 )
{
messageBar()->pushMessage( tr( "DXF export completed" ), QgsMessageBar::INFO, 4 );
Expand Down

0 comments on commit 9d379f0

Please sign in to comment.