summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-05 09:54:27 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-05 09:54:27 +0200
commitf1a708859df39367d296a81495e0d4c6f64c1ddb (patch)
tree8e770d3f01c204cb745145a3e540177f57cf3000 /src/lib
parenta59d35d02b6612e2c05bcbd888c276675ac10aee (diff)
Revert "avoid access to uninit. memory"
This caused no geometry to be ever inserted to a shape. This reverts commit 62a1abdadcba61f9a0d0daf38c442f0cd86c8718.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/VSDParser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp
index 1b65ac8..9fdb8be 100644
--- a/src/lib/VSDParser.cpp
+++ b/src/lib/VSDParser.cpp
@@ -845,12 +845,8 @@ void libvisio::VSDParser::readTextBlock(WPXInputStream *input)
void libvisio::VSDParser::readGeomList(WPXInputStream *input)
{
if (!m_shape.m_geometries.empty() && m_currentGeometryList->empty())
- {
m_shape.m_geometries.erase(--m_currentGeomListCount);
- m_currentGeometryList = 0;
- }
- if (!m_shape.m_geometries.empty()) // broken file?
- m_currentGeometryList = &m_shape.m_geometries[m_currentGeomListCount++];
+ m_currentGeometryList = &m_shape.m_geometries[m_currentGeomListCount++];
if (m_header.trailer)
{