From c15c5b522790a785addb67a6f791ef633d441c03 Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 18 Jun 2021 02:08:37 +0200 Subject: [PATCH] TransactionHistory: use displayAmount for amount --- src/libwalletqt/TransactionHistory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libwalletqt/TransactionHistory.cpp b/src/libwalletqt/TransactionHistory.cpp index a6740e95..854a0815 100644 --- a/src/libwalletqt/TransactionHistory.cpp +++ b/src/libwalletqt/TransactionHistory.cpp @@ -181,7 +181,6 @@ QString TransactionHistory::writeCSV(quint32 accountIndex, QString out) TransactionInfo info(tx, this); // collect column data - double amount = info.amount(); quint64 atomicAmount = info.atomicAmount(); quint32 subaddrAccount = info.subaddrAccount(); QString fee = info.fee(); @@ -212,7 +211,7 @@ QString TransactionHistory::writeCSV(quint32 accountIndex, QString out) // format and write QString line = QString("%1,%2,%3,%4,%5,%6,%7,%8,\"%9\",%10,%11\n") .arg(QString::number(blockHeight), QString::number(epoch), date) - .arg(direction, QString::number(amount), QString::number(atomicAmount)) + .arg(direction, displayAmount, QString::number(atomicAmount)) .arg(info.fee(), info.hash(), label, QString::number(subaddrAccount)) .arg(paymentId); output << line;