1 From 68b3b74569881248bfb6cbb4266177cc253b292f Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Sat, 8 Apr 2017 14:03:29 +0200
4 Subject: [PATCH] ofz#1037 resize vector correctly
7 src/lib/MsWrd1Parser.cxx | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/lib/MsWrd1Parser.cxx b/src/lib/MsWrd1Parser.cxx
11 index 63547e6..3626064 100644
12 --- a/src/lib/MsWrd1Parser.cxx
13 +++ b/src/lib/MsWrd1Parser.cxx
14 @@ -902,7 +902,7 @@ bool MsWrd1Parser::readFootnoteCorrespondance(MWAWVec2i limits)
15 int id = fIt++->second;
16 fPos[1] = fIt==footnoteMap.end() ? m_state->m_eot : fIt->first;
17 if (id >= int(m_state->m_footnotesList.size()))
18 - m_state->m_footnotesList.resize(size_t(id),MWAWVec2l(0,0));
19 + m_state->m_footnotesList.resize(size_t(id)+1,MWAWVec2l(0,0));
20 m_state->m_footnotesList[size_t(id)]=fPos;
22 ascii().addDelimiter(input->tell(),'|');