summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 15:27:39 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 15:27:39 +0100
commit2cca79df4c7a46e54c40ab19a2afd779b059667e (patch)
tree925cd8a2639283fd53f0b075860f5d82e45e03f0
parentd9358fa7e6eeaf9075042b0cc98909f5866aea8a (diff)
Fix an error in order of variables
-rw-r--r--src/lib/VSD5Parser.cpp2
1 files changed, 1 insertions, 1 deletions
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<unsigned, VSDName>::const_iterator iter = m_names.find(nameId);
if (iter != m_names.end())
names[elementId] = iter->second;