From 5b2e68378b9d72e8b37971720e2fa5c68b218763 Mon Sep 17 00:00:00 2001 From: alex <alex@c028cbd2-c16b-5b4b-a496-9718f37d4682> Date: Thu, 13 Dec 2007 11:54:51 +0000 Subject: [PATCH] Patch level : 4.0 832 Files correlati : sv1,exe Ricompilazione Demo : [ ] Commento : Corretta la generazione dei niomi dei sampi di svriep , poteva causare un errore di protezione git-svn-id: svn://10.65.10.50/trunk@15864 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- sv/sv1200.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sv/sv1200.cpp b/sv/sv1200.cpp index 1106c50a2..aa933c3da 100755 --- a/sv/sv1200.cpp +++ b/sv/sv1200.cpp @@ -1690,7 +1690,7 @@ void TStampa_stat::put_column(TRectype& statrec, int col, const TSVriep_record& else { const real qta = rieprec.get_real(SVR_QUANTITA) * fc; - TString4 colname; colname.format("%s%d", SVS_QTACOLNAME, col); + TString4 colname; colname.format("%c%d", SVS_QTACOLNAME, col); statrec.add(colname, qta); //statrec.put(SVS_TOTALERIGA,statrec.get_real(SVS_TOTALERIGA)+rieprec.get_real(SVR_QUANTITA)*fc); } @@ -1700,7 +1700,7 @@ void TStampa_stat::put_column(TRectype& statrec, int col, const TSVriep_record& if (_st_val || _st_uni) { const real val = rieprec.get_real(SVR_VALORE); - TString4 colname; colname.format("%s%d", SVS_VALCOLNAME, col); + TString4 colname; colname.format("%c%d", SVS_VALCOLNAME, col); statrec.add(colname, val); //statrec.put(SVS_TOTALERIGA, statrec.get_real(SVS_TOTALERIGA)+rieprec.get_real(SVR_VALORE)); } @@ -1804,7 +1804,7 @@ void TStampa_stat::invalid_columns(TRectype& statrec) TString16 colname; for (int col = 0; col < SVS_NUMCOLONNE; col++) { - colname.format("%s%d", SVS_QTACOLNAME, col); + colname.format("%C%d", SVS_QTACOLNAME, col); statrec.zero(colname); } //statrec.put(SVS_TOTALERIGA,0);