ofz: cluster of unused variables -> div by zero
Change-Id: Ic3ca3228b112301217f0eb239899c775de52975e
This commit is contained in:
parent
62c063de37
commit
5b4d218b35
@ -1882,7 +1882,7 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
|
|||||||
try {
|
try {
|
||||||
sal_uInt16 nOpcode;
|
sal_uInt16 nOpcode;
|
||||||
sal_uInt8 nOneByteOpcode;
|
sal_uInt8 nOneByteOpcode;
|
||||||
sal_uLong nSize, nPercent, nLastPercent;
|
sal_uLong nSize;
|
||||||
|
|
||||||
pPict = &rStreamPict;
|
pPict = &rStreamPict;
|
||||||
nOrigPos = pPict->Tell();
|
nOrigPos = pPict->Tell();
|
||||||
@ -1908,10 +1908,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
|
|||||||
|
|
||||||
pPict->SetEndian(SvStreamEndian::BIG);
|
pPict->SetEndian(SvStreamEndian::BIG);
|
||||||
|
|
||||||
sal_uInt64 const nStartPos = pPict->Tell();
|
|
||||||
sal_uInt64 const nRemaining = pPict->remainingSize();
|
|
||||||
nLastPercent=0;
|
|
||||||
|
|
||||||
ReadHeader();
|
ReadHeader();
|
||||||
|
|
||||||
aPenPosition=Point(-aBoundingRect.Left(),-aBoundingRect.Top());
|
aPenPosition=Point(-aBoundingRect.Left(),-aBoundingRect.Top());
|
||||||
@ -1921,11 +1917,6 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
nPercent = (nPos-nStartPos) * 100 / nRemaining;
|
|
||||||
if (nLastPercent+4<=nPercent) {
|
|
||||||
nLastPercent=nPercent;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (IsVersion2 )
|
if (IsVersion2 )
|
||||||
pPict->ReadUInt16( nOpcode );
|
pPict->ReadUInt16( nOpcode );
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user