Commit 5490bb7b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add const; fix crash

svn path=/trunk/kdegraphics/kpdf/; revision=251035
parent d4f332c5
......@@ -29,7 +29,7 @@ namespace KPDF
/* void setLinks(); */
void setPage(int pagenum);
int getPage() { return m_currentPage; };
int getPage() const { return m_currentPage; };
public slots:
void nextPage();
......
......@@ -466,9 +466,10 @@ Part::redrawPage()
displayPage(m_currentPage);
}
void
Part::pageClicked ( QListBoxItem * qbi )
void Part::pageClicked ( QListBoxItem * qbi )
{
if ( !qbi )
return;
m_currentPage = pdfpartview->pagesListBox->index(qbi)+1;
m_outputDev->setPage(m_currentPage);
}
......
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