From b8adb1e66085d39014ad26593097eb16a8fb59df Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Nov 2012 17:11:43 +0000 Subject: 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 --- svtools/source/filter/wmf/winwmf.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'svtools') 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 -- cgit