incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1350605 - /incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx
Date Fri, 15 Jun 2012 13:09:27 GMT
Author: hdu
Date: Fri Jun 15 13:09:27 2012
New Revision: 1350605

URL: http://svn.apache.org/viewvc?rev=1350605&view=rev
Log:
#c705103# fix WW8SttbRgtplc::getEntry() for positive index argument

Modified:
    incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx

Modified: incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx?rev=1350605&r1=1350604&r2=1350605&view=diff
==============================================================================
--- incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx (original)
+++ incubator/ooo/trunk/main/writerfilter/source/doctok/WW8Sttbf.cxx Fri Jun 15 13:09:27 2012
@@ -141,12 +141,11 @@ WW8SttbRgtplc::getEntry(sal_uInt32 nInde
     
     sal_uInt32 nOffset = 6;
     
-    while (nIndex > 0)
+    for(; nIndex > 0; --nIndex)
     {
         sal_uInt16 nCount = getU16(nOffset);
         
         nOffset = nOffset + 2 + nCount;
-        ++nIndex;
     }
     
     sal_uInt16 nCount = getU16(nOffset);



Mime
View raw message