From 8c143f63488c290a7b8e0c3ff5ea179c49e2801e Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 13 Mar 1995 11:38:35 +0000 Subject: [PATCH] Corretto loop infinito della maschera di ricerca git-svn-id: svn://10.65.10.50/trunk@1110 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2102.cpp | 2 +- cg/cg2104.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cg/cg2102.cpp b/cg/cg2102.cpp index 585217d81..bc5409eb4 100755 --- a/cg/cg2102.cpp +++ b/cg/cg2102.cpp @@ -1186,7 +1186,7 @@ bool TPrimanota_application::caus_query_handler(TMask_field& f, KEY key) if (i != iva_errata) { const bool ok = suspended_handler(f, key); // Controlla sospensione - if (ok) + if (ok && key == K_TAB) f.mask().stop_run(K_INS); // Entra in modo inserimento } else diff --git a/cg/cg2104.cpp b/cg/cg2104.cpp index 2e2b24ebf..f5380f238 100755 --- a/cg/cg2104.cpp +++ b/cg/cg2104.cpp @@ -259,10 +259,8 @@ bool TPrimanota_application::read_scadenze(const TMask& m) char sezione = _rel->cg(0).get_char("SEZIONE"); // Dare/Avere char tipocf = _rel->cg(0).get_char("TIPOC"); // Cliente || Fornitore || Uncazzo - int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 : - _rel->cg(0).get_char("GRUPPO"); - int conto = (tipocf == 'C' || tipocf == 'F') ? 0 : - _rel->cg(0).get_char("CONTO"); + int gruppo = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("GRUPPO"); + int conto = (tipocf == 'C' || tipocf == 'F') ? 0 : _rel->cg(0).get_char("CONTO"); long sottoconto = _rel->cg(0).get_long("SOTTOCONTO"); int nriga = 1; int numrig = 1;