# HG changeset patch # User František Kučera # Date 1606004565 -3600 # Node ID 4313e91da50bcf9ff4a6e3785e9142f91e6ed12a # Parent f031a4dc7c52bd3439e99a8f118b967d53435006 add missing endSection() call diff -r f031a4dc7c52 -r 4313e91da50b 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;