From bda4b469f1e345b36213eabec58843771e158b0e Mon Sep 17 00:00:00 2001 From: Joey Hewitt Date: Mon, 8 Apr 2013 21:08:01 -0600 Subject: [PATCH] Fix bug with "Addresses per page" == 1 It was effectively "don't insert any pagebreaks" because the modulus condition could never be true. --- bitaddress.org.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitaddress.org.html b/bitaddress.org.html index c248936..05fdf9e 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -6466,7 +6466,7 @@ } if (paperArea.innerHTML != "") { // page break - if (i % pageBreakAt == 1 && ninja.wallets.paperwallet.count >= pageBreakAt) { + if ((i-1) % pageBreakAt == 0 && i >= pageBreakAt) { var pBreak = document.createElement("div"); pBreak.setAttribute("class", "pagebreak"); document.getElementById("paperkeyarea").appendChild(pBreak);