From e37d423b625d0a478ad3ded98eb3ebaced61ad20 Mon Sep 17 00:00:00 2001 From: cris Date: Fri, 5 Jun 1998 10:49:19 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : Stampa idonei: corretto errore per cui stampava sempre anche chi era idoneo senza tipi di donazione git-svn-id: svn://10.65.10.50/trunk@6718 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- at/at2500.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/at/at2500.cpp b/at/at2500.cpp index e6c6fceeb..7891ef378 100755 --- a/at/at2500.cpp +++ b/at/at2500.cpp @@ -145,7 +145,7 @@ bool TStampaIdonei::filter_func_idonei(const TRelation * rel) } // filtro per idoneità if (filtrato) - { + { TAssoc_array idoneita; TString16 idonsog = sog.get(SOG_IDON1); if (idonsog.not_empty() && idonsog.ok()) @@ -170,6 +170,9 @@ bool TStampaIdonei::filter_func_idonei(const TRelation * rel) if (app()._idon4.not_empty() && app()._idon4.ok()) filtrato = filtrato && idoneita.is_key((const char*) app()._idon4); } + else + if (!(app()._idon1.empty() && app()._idon2.empty() && app()._idon3.empty() && app()._idon4.empty())) + filtrato = FALSE; } return filtrato; }