[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Fri Mar 3 14:46:52 UTC 2017


 lotuswordpro/source/filter/lwpidxmgr.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f8de39789767f58c03b149371388a92722cb0427
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 3 09:44:24 2017 +0000

    ofz#721 use vector::at to check index
    
    Change-Id: I786b5d6fb10afe3ebb8482f999115fe72ffe2d4c
    Reviewed-on: https://gerrit.libreoffice.org/34853
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/lotuswordpro/source/filter/lwpidxmgr.cxx b/lotuswordpro/source/filter/lwpidxmgr.cxx
index 8d02521..94cd789 100644
--- a/lotuswordpro/source/filter/lwpidxmgr.cxx
+++ b/lotuswordpro/source/filter/lwpidxmgr.cxx
@@ -194,7 +194,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm)
 
     std::vector<LwpKey*> vObjIndexs;
 
-    if(KeyCount)
+    if (KeyCount)
     {
         LwpKey* akey = new LwpKey();
         akey->id.Read(pObjStrm);
@@ -218,7 +218,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm)
 
     for( sal_uInt16 j=0; j<LeafCount; j++ )
     {
-        sal_Int64 nPos = m_TempVec[j]+LwpSvStream::LWP_STREAM_BASE;
+        sal_Int64 nPos = m_TempVec.at(j) + LwpSvStream::LWP_STREAM_BASE;
         sal_Int64 nActualPos = pObjStrm->GetStream()->Seek(nPos);
 
         if (nPos != nActualPos)


More information about the Libreoffice-commits mailing list