From e0405077dfec5900b097de45a80fef391d324309 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Tue, 9 Nov 2021 07:39:49 +0100 Subject: [PATCH] Patch level : 12.0 nopatch Files correlati : Commento : Implementazione invio regolarizzazioni al 07/11/2021 --- src/include/report.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include/report.cpp b/src/include/report.cpp index 14fc2f276..2319a4ebd 100755 --- a/src/include/report.cpp +++ b/src/include/report.cpp @@ -2256,6 +2256,7 @@ void TReport::destroy() { _sections.destroy(); _description.cut(0); + _default_shown_sections.destroy(); set_recordset(nullptr); } @@ -2350,6 +2351,14 @@ bool TReport::load(const char* fname) } } } + FOR_EACH_ASSOC_OBJECT(_sections, os, sec_key, sec_item) + { + TReport_section * sect = (TReport_section *)sec_item; + const bool section_shown = sect->shown(); + + if (section_shown) + _default_shown_sections.add(sec_key); + } return ok; }