summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-05 10:02:00 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-05 10:02:00 +0200
commitf784bb8be865b2228e0116fa97a071a4be675121 (patch)
treecfa711d6141a564427002d1ea67d10eaf8371ae8
parent77c46cef14432470474286bb78c59293920371a7 (diff)
Clarify the codelibvisio-0.0.28
-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)