add missing endSection() call v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 22 Nov 2020 01:22:45 +0100
branchv_0
changeset 3 4313e91da50b
parent 2 f031a4dc7c52
child 4 d9b047731e18
add missing endSection() call
src/lib/INIReader.cpp
--- a/src/lib/INIReader.cpp	Sun Nov 22 00:44:00 2020 +0100
+++ b/src/lib/INIReader.cpp	Sun Nov 22 01:22:45 2020 +0100
@@ -60,6 +60,7 @@
 				// TODO: support also comments + emit also the comment style (;/#)
 			} else if (std::regex_match(line, match, sectionPattrern)) {
 				if (inSection) for (INIContentHandler* handler : handlers) handler->endSection();
+				inSection = true;
 				INIContentHandler::SectionStartEvent event;
 				event.lineNumber = lineNumber;
 				event.eventNumber = ++eventNumber;