mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-05 18:46:09 +02:00
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 a new issue