Fix #24 (again)

This commit is contained in:
Nicolas Mailloux 2022-04-01 22:20:38 -04:00
parent dfba8eec90
commit 46c12fce8d

View file

@ -1034,7 +1034,7 @@ void reader::on_nextBtn_clicked()
}
else {
mupdf::pdf::pdfPageNumber = mupdf::pdf::pdfPageNumber + 1;
if(ui->pdfScaleSlider->value() != 0) {
if(ui->pdfScaleSlider->value() != 1) {
mupdf::convertRelativeValues = true;
}
setup_book(book_file, mupdf::pdf::pdfPageNumber, true);
@ -1075,6 +1075,9 @@ void reader::on_previousBtn_clicked()
}
else {
mupdf::pdf::pdfPageNumber = mupdf::pdf::pdfPageNumber - 1;
if(ui->pdfScaleSlider->value() != 1) {
mupdf::convertRelativeValues = true;
}
setup_book(book_file, mupdf::pdf::pdfPageNumber, true);
setupPng();