mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Fix crash via division by zero assertion
This commit is contained in:
parent
2c66cea2d1
commit
207408b088
1 changed files with 1 additions and 2 deletions
|
@ -582,8 +582,7 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog)
|
|||
QString toolTipDust = tr("This label turns red if any recipient receives an amount smaller than the current dust threshold.");
|
||||
|
||||
// how many satoshis the estimated fee can vary per byte we guess wrong
|
||||
assert(nBytes != 0);
|
||||
double dFeeVary = (double)nPayFee / nBytes;
|
||||
double dFeeVary = (nBytes != 0) ? (double)nPayFee / nBytes : 0;
|
||||
|
||||
QString toolTip4 = tr("Can vary +/- %1 satoshi(s) per input.").arg(dFeeVary);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue