diff --git a/gnucash/import-export/csv-exp/csv-transactions-export.cpp b/gnucash/import-export/csv-exp/csv-transactions-export.cpp index 55ba6ceec9..bec67baf95 100644 --- a/gnucash/import-export/csv-exp/csv-transactions-export.cpp +++ b/gnucash/import-export/csv-exp/csv-transactions-export.cpp @@ -130,15 +130,8 @@ get_memo (Split *split) static std::string get_category (Split *split, bool full) { - if (full) - { - auto cat{xaccSplitGetCorrAccountFullName (split)}; - auto rv{std::string (cat)}; - g_free (cat); - return rv; - } - else - return xaccSplitGetCorrAccountName (split); + auto other{xaccSplitGetOtherSplit(split)}; + return other ? get_account_name (other, full) : _("-- Split Transaction --"); } // Action