- Clamp max percentual in JumpToDialog to avoid a gtk+ warning
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1077 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
eec74de632
commit
48160eb23d
|
@ -160,7 +160,7 @@ JumpToDialog::update(const Simulation& changed_simulation)
|
|||
{
|
||||
unsigned int front = changed_simulation.get_history().get_front();
|
||||
|
||||
double percent = static_cast<double>(front) / _target_instant;
|
||||
double percent = std::min(static_cast<double>(front) / _target_instant, 1.0);
|
||||
|
||||
_progress->set_fraction(percent);
|
||||
|
||||
|
|
Loading…
Reference in New Issue