Commit 81c3bb40 authored by Laurent Montel's avatar Laurent Montel 😁

Fix crash before it selected "pagenum - 1" and not pagenum

svn path=/trunk/kdegraphics/kpdf/; revision=266325
parent 7803fa40
......@@ -165,14 +165,14 @@ void Part::slotGoToPage()
int num = KInputDialog::getInteger(i18n("Go to Page"), i18n("Page:"), 1,
1, m_doc->getNumPages(), 1, 10, &ok/*, _part->widget()*/);
if (ok)
goToPage( num -1 );
goToPage( num );
}
}
void Part::goToPage( int page )
{
m_currentPage = page;
pdfpartview->pagesListBox->setCurrentItem(m_currentPage);
pdfpartview->pagesListBox->setCurrentItem(m_currentPage-1);
m_outputDev->setPage(m_currentPage);
updateActionPage();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment