diff --git a/at/at7100.cpp b/at/at7100.cpp index 64ba3df2d..2e45d1aa7 100755 --- a/at/at7100.cpp +++ b/at/at7100.cpp @@ -247,9 +247,9 @@ bool TStampaTessere::preprocess_page(int file, int counter) _contatore++; _totfinestampa++; } + const int totdon = sogg.get_int(SOG_TOTDON); if (_tipostampa == tessere) { - const int totdon = sogg.get_int(SOG_TOTDON); const TDate dataultima = sogg.get(SOG_DATAULTDON); _riepilogodon = ""; if (totdon != 0) @@ -259,17 +259,14 @@ bool TStampaTessere::preprocess_page(int file, int counter) _riepilogodon << " n."; _riepilogodon << totdon; } - if (_aggiorna) - { - sogg.put(SOG_T_STAMPATA,TRUE); - TString16 catdon = sogg.get(SOG_CATDON); - if ((totdon >= _numdon2) && (catdon == _catini2) && _sttess2) - sogg.put(SOG_CATDON, _catfin2); - sogg.rewrite(); - } } if (_aggiorna) { + sogg.put(SOG_T_STAMPATA,TRUE); + TString16 catdon = sogg.get(SOG_CATDON); + if ((totdon >= _numdon2) && (catdon == _catini2) && _sttess2) + sogg.put(SOG_CATDON, _catfin2); + sogg.rewrite(); TLocalisamfile atropera(LF_ATROPERA); atropera.zero(); atropera.put(ROP_PROGOPE, _progope);