From eadb38bb4ba150aa7c2aed3403ae86283af09d87 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 6 Sep 2018 15:45:19 +0200 Subject: shiboken: Fix handling of dropped type entries When parsing the typesystem XML file, decrement variable containing the depth of dropped entries in Handler::endElement(). Otherwise, when dropping a type like all subsequent entries would be droppped. Change-Id: I640a916e8c8dbddcaeaebc3859300cc2a0eb1b0c Reviewed-by: Christian Tismer --- sources/shiboken2/ApiExtractor/typesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken2/ApiExtractor/typesystem.cpp') diff --git a/sources/shiboken2/ApiExtractor/typesystem.cpp b/sources/shiboken2/ApiExtractor/typesystem.cpp index baaec6d30..8e0e4437a 100644 --- a/sources/shiboken2/ApiExtractor/typesystem.cpp +++ b/sources/shiboken2/ApiExtractor/typesystem.cpp @@ -301,7 +301,7 @@ bool Handler::endElement(const QStringRef &localName) m_currentDroppedEntry = 0; m_currentDroppedEntryDepth = 0; } else { - ++m_currentDroppedEntryDepth; + --m_currentDroppedEntryDepth; } return true; } -- cgit v1.2.3