- 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:
tchernobog 2006-09-09 12:34:51 +00:00
parent eec74de632
commit 48160eb23d
1 changed files with 1 additions and 1 deletions

View File

@ -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);