From 750721168fa2868ec01d0e9e7902069cdf4677a1 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Fri, 11 Sep 2020 13:21:24 +0200 Subject: [PATCH] Patch level : 12.0 996 Files correlati : cg2.exe Commento : - Corretta inizializzazione di trit nell'importazione di una transazione. --- src/cg/cg2100.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cg/cg2100.cpp b/src/cg/cg2100.cpp index b5e8cec1c..f6bafdc30 100755 --- a/src/cg/cg2100.cpp +++ b/src/cg/cg2100.cpp @@ -2335,11 +2335,12 @@ void TPrimanota_application::ini2mask(TConfig& ini, TMask& msk, bool query) static TString4 __trit; if (__trit.blank()) - __trit << cgrowtype_ritfis << cgrowtype_ritsoc << cgrowtype_revcharge; + __trit << (char) cgrowtype_ritfis << (char) cgrowtype_ritsoc << (char) cgrowtype_revcharge; for (int i = 0; __frit[i]; i++) { TEdit_field& ritfld = msk.efield(__frit[i]); + if (!ritfld.empty() && ritfld.active()) add_cgs_ritenute(__trit[i]); }