Consider 100% load progress to be complete

This commit is contained in:
Pierre Pronchery 2012-02-25 23:08:40 +00:00
parent 39a3580dfa
commit 56d1cf3841

View File

@ -591,7 +591,7 @@ void surfer_set_progress(Surfer * surfer, gdouble fraction)
if((view = surfer_get_view(surfer)) == NULL)
return; /* consider the current tab only */
fraction = ghtml_get_progress(view);
if(fraction >= 0.0 && fraction <= 1.0)
if(fraction >= 0.0 && fraction < 1.0)
snprintf(buf, sizeof(buf), "%.1f%%", fraction * 100);
else
fraction = 0.0;