summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/VSDParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp
index 9fdb8be..7fec7ec 100644
--- a/src/lib/VSDParser.cpp
+++ b/src/lib/VSDParser.cpp
@@ -846,6 +846,9 @@ void libvisio::VSDParser::readGeomList(WPXInputStream *input)
{
if (!m_shape.m_geometries.empty() && m_currentGeometryList->empty())
m_shape.m_geometries.erase(--m_currentGeomListCount);
+ // Since this is a map, this will default construct an element and then
+ // the m_currentGeometryList pointer takes its address and we will work
+ // on it over that pointer.
m_currentGeometryList = &m_shape.m_geometries[m_currentGeomListCount++];
if (m_header.trailer)