From 16b58fd72b914e42db530fc14a2519b0384b3b77 Mon Sep 17 00:00:00 2001 From: augusto Date: Tue, 20 Oct 1998 14:42:45 +0000 Subject: [PATCH] Patch level : Files correlati : Ricompilazione Demo : [ ] Commento : TFile_cache: corretto settaggio di _last_firm nel 1' costruttore e introdotto setkey prima della lettura nel motodo Fill git-svn-id: svn://10.65.10.50/trunk@7303 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/recarray.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/recarray.cpp b/include/recarray.cpp index b3f0f80ea..9a2565f8a 100755 --- a/include/recarray.cpp +++ b/include/recarray.cpp @@ -403,7 +403,7 @@ int TRecord_array::remove() const /////////////////////////////////////////////////////////// TFile_cache::TFile_cache(TLocalisamfile *f , int key) - : _file(NULL), _key(key), + : _file(NULL), _key(key), _last_firm(-883), _test_changes(FALSE), _last_read(0), _limit(0) { _filecode << f->num(); @@ -574,6 +574,7 @@ long TFile_cache::fill() const RecDes* recd = curr.rec_des(); // Descrizione del record della testata const KeyDes& kd = recd->Ky[_key-1]; // Elenco dei campi della chiave + f.setkey(_key); for (int err = f.first(); err == NOERR; err = f.next()) { _code.cut(0);