Grid(1,1) instead Grid(0,0).

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-19 17:41:46 +03:00
parent fca862a351
commit 74608b0481
2 changed files with 4 additions and 4 deletions

View File

@ -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())

View File

@ -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)
{