Fix issue in ProgressBar when number of nodes/descs/arcs was less than 100.

This commit is contained in:
Mikael Capelle 2018-02-28 20:10:43 +01:00
parent 575eb71e64
commit bcb9faa6b2

View file

@ -85,7 +85,7 @@ public class GraphReaderProgressBar extends JDialog implements GraphReaderObserv
protected void initProgressBar(int index, int max) {
progressBars[index].setMaximum(max);
modulos[index] = max / 100;
modulos[index] = Math.max(max / 100, 1);
}
protected void incCounter(int index) {