Merge pull request #15 from scintill/patch-pagebreak

Fix bug with "Addresses per page" == 1
This commit is contained in:
pointbiz 2013-04-14 08:18:36 -07:00
commit 39cdf7e33c

View file

@ -6467,7 +6467,7 @@
} }
if (paperArea.innerHTML != "") { if (paperArea.innerHTML != "") {
// page break // page break
if (i % pageBreakAt == 1 && ninja.wallets.paperwallet.count >= pageBreakAt) { if ((i-1) % pageBreakAt == 0 && i >= pageBreakAt) {
var pBreak = document.createElement("div"); var pBreak = document.createElement("div");
pBreak.setAttribute("class", "pagebreak"); pBreak.setAttribute("class", "pagebreak");
document.getElementById("paperkeyarea").appendChild(pBreak); document.getElementById("paperkeyarea").appendChild(pBreak);