Fix bug with delay being allowed to be set to 0.

This commit is contained in:
sigonasr2 2017-09-07 19:15:05 -05:00
parent 5a47dc01d7
commit 4468b9d327
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -350,7 +350,7 @@ public class SlideshowViewer {
} catch (NumberFormatException ex) { } catch (NumberFormatException ex) {
currentdelay = -1; currentdelay = -1;
} }
if (currentdelay>120 || currentdelay<0) { if (currentdelay>120 || currentdelay<=0) {
currentdelay = 5; currentdelay = 5;
delayAmtBox.setText(Integer.toString(currentdelay)); delayAmtBox.setText(Integer.toString(currentdelay));
} }