diff --git a/src/app/tablewindow.cpp b/src/app/tablewindow.cpp index 20453a9f0..fbe03c36e 100644 --- a/src/app/tablewindow.cpp +++ b/src/app/tablewindow.cpp @@ -393,9 +393,9 @@ void TableWindow::PrintToPdf() if ( dialog.exec() == QDialog::Accepted ) { printer.setOutputFormat(QPrinter::PdfFormat); - const QString fileName = QFileDialog::getSaveFileName(this, tr("Print to pdf"), - QDir::homePath()+"/"+this->fileName+".pdf", - tr("PDF file (*.pdf)")); + QString fileName = QFileDialog::getSaveFileName(this, tr("Print to pdf"), + QDir::homePath()+"/"+this->fileName+".pdf", + tr("PDF file (*.pdf)")); if (not fileName.isEmpty()) { if(QFileInfo(fileName).suffix().isEmpty()) diff --git a/src/libs/vlayout/vposter.cpp b/src/libs/vlayout/vposter.cpp index f9b17d91c..461fb59f3 100644 --- a/src/libs/vlayout/vposter.cpp +++ b/src/libs/vlayout/vposter.cpp @@ -222,7 +222,7 @@ QImage VPoster::Borders(int rows, int colomns, int i, int j, QImage &image, int const int layoutY = 5; QRect labels(layoutX, image.rect().height()-allowence+layoutY, image.rect().width()-(allowence+layoutX), allowence-layoutY); - painter.drawText(labels, Qt::AlignLeft, tr("Grid ( %1 , %2 )").arg(i).arg(j)); + painter.drawText(labels, Qt::AlignLeft, tr("Grid ( %1 , %2 )").arg(i+1).arg(j+1)); painter.drawText(labels, Qt::AlignHCenter, tr("Page %1 of %2").arg(i*(colomns)+j+1).arg(rows*colomns)); if (sheets > 1) {