diff --git a/src/jump_to_dialog.cc b/src/jump_to_dialog.cc index d94ca07..a3ceffe 100644 --- a/src/jump_to_dialog.cc +++ b/src/jump_to_dialog.cc @@ -160,7 +160,7 @@ JumpToDialog::update(const Simulation& changed_simulation) { unsigned int front = changed_simulation.get_history().get_front(); - double percent = static_cast(front) / _target_instant; + double percent = std::min(static_cast(front) / _target_instant, 1.0); _progress->set_fraction(percent);