From 2cca79df4c7a46e54c40ab19a2afd779b059667e Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Fri, 22 Feb 2013 15:27:39 +0100 Subject: Fix an error in order of variables --- src/lib/VSD5Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/VSD5Parser.cpp b/src/lib/VSD5Parser.cpp index 447dea7..1ccb7d8 100644 --- a/src/lib/VSD5Parser.cpp +++ b/src/lib/VSD5Parser.cpp @@ -431,8 +431,8 @@ void libvisio::VSD5Parser::readNameIDX(WPXInputStream *input) unsigned recordCount = readU16(input); for (unsigned i = 0; i < recordCount; ++i) { - unsigned elementId = readU16(input); unsigned nameId = readU16(input); + unsigned elementId = readU16(input); std::map::const_iterator iter = m_names.find(nameId); if (iter != m_names.end()) names[elementId] = iter->second; -- cgit v1.2.3