diff options
author | David Tardon <dtardon@redhat.com> | 2014-11-27 21:16:10 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-11-27 21:16:10 +0100 |
commit | f5cc89fd3303fa60764e13addb3bee84adf7bbb5 (patch) | |
tree | c72f8a30cea1510c11501ff8170c0e112fc35082 | |
parent | 04735e030c94941e956423e73214ac04243bcefa (diff) |
move the check a bit up, in preparation for next commit
Change-Id: I9d7f98fecf96f162e2def0cd1af6931886fcb740
-rw-r--r-- | src/lib/VSDParser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp index a30ba2a..9fe8080 100644 --- a/src/lib/VSDParser.cpp +++ b/src/lib/VSDParser.cpp @@ -201,13 +201,16 @@ void libvisio::VSDParser::handleStreams(librevenge::RVNGInputStream *input, unsi { Pointer ptr; readPointer(input, ptr); + if (ptr.Type == 0) + continue; + if (ptr.Type == VSD_FONTFACES) FontFaces[i] = ptr; else if (ptr.Type == VSD_NAME_LIST2) NameList[i] = ptr; else if (ptr.Type == VSD_NAMEIDX || ptr.Type == VSD_NAMEIDX123) NameIDX[i] = ptr; - else if (ptr.Type != 0) + else if (ptr.Type) PtrList[i] = ptr; } if (listSize <= 1) |