summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-21 17:11:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-22 10:24:17 +0000
commitb8adb1e66085d39014ad26593097eb16a8fb59df (patch)
tree5e089a659bfe20370a563bb29f0a8123ee5c42b6 /svtools
parent810aab9e2f4927a7fcfacae62d5b36b074985250 (diff)
seekrel(-6) + read(4) into discard + seekrel(2) == noop
seek backwards 6 bytes read a 4 byte value into a variable that's never used seek forward 2 bytes Change-Id: I1e3ac7606dedb394c571e4589b34cfe050a28fc8
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/wmf/winwmf.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx
index beacfa681756..f9f38e09eb92 100644
--- a/svtools/source/filter/wmf/winwmf.cxx
+++ b/svtools/source/filter/wmf/winwmf.cxx
@@ -1419,12 +1419,8 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
case W_META_EXTTEXTOUT:
{
sal_uInt16 nLen, nOptions;
- sal_Int32 nRecordSize;
Point aPosition;
- pStm->SeekRel(-6);
- *pStm >> nRecordSize;
- pStm->SeekRel(2);
aPosition = ReadYX();
*pStm >> nLen >> nOptions;
// todo: we also have to take care of the text width