Skip to content

Commit

Permalink
export pdf: append .pdf file extension by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Nov 20, 2014
1 parent 52c2378 commit 677a663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librecad/src/main/qc_applicationwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,7 @@ void QC_ApplicationWindow::slotFilePrint(bool printPDF) {
if( QDialog::Accepted == fileDlg.exec()) {
QStringList files = fileDlg.selectedFiles();
if (!files.isEmpty()) {
if(!files[0].endsWith(R"(.pdf)",Qt::CaseInsensitive)) files[0]=files[0]+".pdf";
printer.setOutputFileName(files[0]);
bStartPrinting = true;
}
Expand Down

0 comments on commit 677a663

Please sign in to comment.