Skip to content

Commit

Permalink
Fix a bug where goto_overview would uncenter the document
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrm committed Dec 8, 2024
1 parent 6a96f9c commit 7637caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf_viewer/main_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5115,7 +5115,7 @@ void MainWidget::goto_overview() {
else {
std::optional<DocumentPos> maybe_overview_position = get_overview_position();
if (maybe_overview_position.has_value()) {
long_jump_to_destination(maybe_overview_position.value());
long_jump_to_destination(maybe_overview_position->page, maybe_overview_position->y);
}
}
set_overview_page({});
Expand Down

0 comments on commit 7637caa

Please sign in to comment.