From 74608b04819463d04cbf3af6c32386e5e288d3b0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 19 Apr 2015 17:41:46 +0300 Subject: [PATCH] Grid(1,1) instead Grid(0,0). --HG-- branch : develop --- src/app/tablewindow.cpp | 6 +++--- src/libs/vlayout/vposter.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {