Reinstate not bothering the parent observer if the size of the current

element is 0.
This commit is contained in:
Ray Greenwell
2012-03-12 21:30:07 +00:00
parent 0a6a46898a
commit be1385d634
@@ -48,8 +48,10 @@ public class MetaProgressObserver implements ProgressObserver
// documentation inherited from interface
public void progress (int percent)
{
if (_elementSize > 0) {
_target.progress((int)((_accum + (percent * _elementSize)) / _totalSize));
}
}
protected ProgressObserver _target;
protected long _totalSize, _accum, _elementSize;