From db131f585a8db07cf1582c315cb9795d418da8a3 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 18 Jun 2012 14:15:49 +0000 Subject: [PATCH] Corretta generazione statistiche in modo da non farsi trarre in inganno da Ragioni Sociali contenenti caratteri di controllo delle TPrintApp (#,%,$) git-svn-id: svn://10.65.10.50/branches/R_10_00@22680 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- sv/sv1200.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sv/sv1200.cpp b/sv/sv1200.cpp index a67568a78..5b731c5ee 100755 --- a/sv/sv1200.cpp +++ b/sv/sv1200.cpp @@ -892,8 +892,12 @@ void TStampa_stat::set_descr(int& row) r << strec.get(SVS_CODICE).mid(lencode); descr = strec.get(SVS_DESCR); - if (descr.not_empty()) - r << "@23g" << descr.get(0); + if (descr.full()) + { + TString80 ragsoc = descr.get(0); + ragsoc.strip("%#$"); + r << "@23g" << ragsoc; + } set_row_atpos('R',++row,(const char *)r,_indent[level]); // Seconda riga eventuale...