Viewer: Always start GoTo flow on correct page

This commit is contained in:
Felix Kauselmann 2021-07-06 11:09:23 +02:00
parent df32cf01fb
commit 40d4d224be

View File

@ -846,9 +846,9 @@ void Viewer::animateShowGoToFlow()
showGoToFlowAnimation->setStartValue(QPoint((width() - goToFlow->width()) / 2, height() - 10));
showGoToFlowAnimation->setEndValue(QPoint((width() - goToFlow->width()) / 2, height() - goToFlow->height()));
showGoToFlowAnimation->start();
goToFlow->centerSlide(render->getIndex());
goToFlow->setPageNumber(render->getIndex());
goToFlow->show();
goToFlow->setPageNumber(render->getIndex());
goToFlow->centerSlide(render->getIndex());
goToFlow->setFocus(Qt::OtherFocusReason);
}
}