diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-07 13:33:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-07 15:57:12 +0000 |
commit | 037c606d6e973efa1fea47a3fc3a2985f9406b69 (patch) | |
tree | 89149dc6360935ea8697dcd4bc4bd962cb941ab4 /writerfilter | |
parent | cb5fa11b6366db32805f4b252f72c29d90d5845c (diff) |
surely this is the true intent of this lunatic loop
Change-Id: I6d7963b2b416fe19cc1274780c2aea0c24c25bbb
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/doctok/WW8Sttbf.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/writerfilter/source/doctok/WW8Sttbf.cxx b/writerfilter/source/doctok/WW8Sttbf.cxx index c090b52b99f2..68b1c92cb4f5 100644 --- a/writerfilter/source/doctok/WW8Sttbf.cxx +++ b/writerfilter/source/doctok/WW8Sttbf.cxx @@ -128,12 +128,10 @@ WW8SttbRgtplc::getEntry(sal_uInt32 nIndex) sal_uInt32 nOffset = 6; - while (nIndex > 0) + for (sal_uInt32 i = 0; i < nIndex; ++i) { sal_uInt16 nCount = getU16(nOffset); - nOffset = nOffset + 2 + nCount; - ++nIndex; } sal_uInt16 nCount = getU16(nOffset); |