Commit 5d152036 authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid
Browse files

Signature: We don't need to pass the page number anymore

parent be50f03a
......@@ -399,13 +399,13 @@ public:
return !certNicknameToUse.isEmpty();
}
void sign(int page)
void sign()
{
Okular::NewSignatureData data;
data.setCertNickname(certNicknameToUse);
data.setCertSubjectCommonName(certCommonName);
data.setPassword(passToUse);
data.setPage(page);
data.setPage(m_page->number());
data.setBoundingRectangle(rect);
m_document->sign(data);
......@@ -993,7 +993,7 @@ QRect PageViewAnnotator::performRouteMouseOrTabletEvent(const AnnotatorEngine::E
if (signatureMode()) {
auto signEngine = static_cast<PickPointEngineSignature *>(m_engine);
if (signEngine->isAccepted()) {
static_cast<PickPointEngineSignature *>(m_engine)->sign(m_lockedItem->pageNumber());
static_cast<PickPointEngineSignature *>(m_engine)->sign();
}
m_continuousMode = false;
}
......
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