Kaydet (Commit) 5b4d218b authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: cluster of unused variables -> div by zero

Change-Id: Ic3ca3228b112301217f0eb239899c775de52975e
üst 62c063de
......@@ -1882,7 +1882,7 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
try {
sal_uInt16 nOpcode;
sal_uInt8 nOneByteOpcode;
sal_uLong nSize, nPercent, nLastPercent;
sal_uLong nSize;
pPict = &rStreamPict;
nOrigPos = pPict->Tell();
......@@ -1908,10 +1908,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
pPict->SetEndian(SvStreamEndian::BIG);
sal_uInt64 const nStartPos = pPict->Tell();
sal_uInt64 const nRemaining = pPict->remainingSize();
nLastPercent=0;
ReadHeader();
aPenPosition=Point(-aBoundingRect.Left(),-aBoundingRect.Top());
......@@ -1921,11 +1917,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
for (;;) {
nPercent = (nPos-nStartPos) * 100 / nRemaining;
if (nLastPercent+4<=nPercent) {
nLastPercent=nPercent;
}
if (IsVersion2 )
pPict->ReadUInt16( nOpcode );
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment