Commit 5d947905 authored by Pedro Arthur Pinheiro Rosa Duarte's avatar Pedro Arthur Pinheiro Rosa Duarte 💬 Committed by David Hurka
Browse files

Remove artifact while navigating though pages

When the view is paged (ie, non continuous), and an annotation is
selected while the user navigate through pages, the annotation
selection will become an artifact in other pages. Besides that,
the annotation will still receive keystrokes (such as delete).

Steps to Reproduce:
 - Open a PDF file with Okular
 - Draw an ellipsis annotation in the document
 - Select the ellipsis
 - Change to the previous or next page
parent 4da86fb8
Pipeline #33352 passed with stage
in 32 minutes and 18 seconds
......@@ -1427,6 +1427,14 @@ void PageView::notifyCurrentPageChanged(int previous, int current)
// if the view is paged (or not continuous) and there is a selected annotation,
// we call reset to avoid creating an artifact in the next page.
if (!Okular::Settings::viewContinuous()) {
if (d->mouseAnnotation && d->mouseAnnotation->isFocused()) {
// END DocumentObserver inherited methods
Supports Markdown
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