From b311482c052e31e2b66df8bc67889fa5025d6de7 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 14 Dec 2011 17:05:25 +0000 Subject: [PATCH] Patch level : fe 10.0 Files correlati : fe0.exe Ricompilazione Demo : [ ] Commento : Corretta ragionae sociale delle ditte individuali git-svn-id: svn://10.65.10.50/branches/R_10_00@22521 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- fe/felib.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fe/felib.cpp b/fe/felib.cpp index 024563661..28aad3714 100644 --- a/fe/felib.cpp +++ b/fe/felib.cpp @@ -123,8 +123,10 @@ bool TAnagrafica::init(const TRectype& rec) break; case LF_NDITTE: { - const bool good = init(LF_ANAG, rec.get_char(NDT_TIPOA), rec.get_long(NDT_CODANAGR)); - _ragsoc = rec.get(NDT_RAGSOC); + const char tipoa = rec.get_char(NDT_TIPOA); + const bool good = init(LF_ANAG, tipoa, rec.get_long(NDT_CODANAGR)); + if (tipoa == 'G') + _ragsoc = rec.get(NDT_RAGSOC); return good; } break;