Check if file has correct suffix.
--HG-- branch : develop
This commit is contained in:
parent
44b01e8f1b
commit
fca862a351
|
@ -398,6 +398,11 @@ void TableWindow::PrintToPdf()
|
|||
tr("PDF file (*.pdf)"));
|
||||
if (not fileName.isEmpty())
|
||||
{
|
||||
if(QFileInfo(fileName).suffix().isEmpty())
|
||||
{
|
||||
fileName.append(".pdf");
|
||||
}
|
||||
|
||||
printer.setOutputFileName(fileName);
|
||||
printer.setResolution(static_cast<int>(VApplication::PrintDPI));
|
||||
Print( &printer );
|
||||
|
|
Loading…
Reference in New Issue
Block a user