Skip to content

Commit

Permalink
fix + button on amount (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored Jun 11, 2022
1 parent 053bf33 commit cd7de76
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,16 @@ private void addQty( final int i )
int resultI;

if( resultD <= 0 || Double.isNaN( resultD ) ) {
resultI = 1;
resultI = 0;
}
else {
resultI = (int) ArithHelper.round(resultD, 0);
}

if (resultI == 1 && i > 0) {
resultI = 0;
}

resultI += i;
if( resultI < 1 ) {
resultI = 1;
Expand Down

0 comments on commit cd7de76

Please sign in to comment.