Patch level :2.2 170

Files correlati     :stampa rendiconto
Ricompilazione Demo : [ ]
Commento            :
Sistemato limite di identificatore nel ciclo dei campi conto della maschera generata


git-svn-id: svn://10.65.10.50/trunk@13329 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2005-09-05 11:21:27 +00:00
parent 4f824f40c9
commit ed3c70e150

View File

@ -1065,7 +1065,7 @@ void TPrint_rendiconto_ca_recordset::set_filter(const TPrint_rendiconto_ca_mask&
//conti non riclassificati //conti non riclassificati
if (!_riclassificato) if (!_riclassificato)
{ {
for (int i = 0; msk.id2pos(dlg_da+i) > 0; i++) for (int i = 0; i < 4 && msk.id2pos(dlg_da+i) > 0; i++)
{ {
_daconto << msk.get(dlg_da+i); _daconto << msk.get(dlg_da+i);
_aconto << msk.get(dlg_al+i); _aconto << msk.get(dlg_al+i);
@ -1073,7 +1073,7 @@ void TPrint_rendiconto_ca_recordset::set_filter(const TPrint_rendiconto_ca_mask&
} }
else //conti riclassificati else //conti riclassificati
{ {
for (int i = 0; msk.id2pos(dlg_da+i) < 41; i++) //***41 andrebbe sostituito con una condizione + seria for (int i = 0; i < 4 && msk.id2pos(dlg_da+i) > 0; i++)
{ {
_da_conto_riclas << msk.get(dlg_da+i); _da_conto_riclas << msk.get(dlg_da+i);
_a_conto_riclas << msk.get(dlg_al+i); _a_conto_riclas << msk.get(dlg_al+i);