Kaydet (Commit) 631378fe authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: logic for last-ditch svg detection is busted

bIsGZip was never set, and the condition that uses it is additionally inverted

Change-Id: I0496bb27435c4323d74c1b99467d3ede68e7bee6
üst 3cd91d12
......@@ -662,6 +662,8 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
nCheckSize = nDecompressedSize < 256 ? nDecompressedSize : 256;
aCodec.EndCompression();
pCheckArray = sExtendedOrDecompressedFirstBytes;
bIsGZip = true;
}
bool bIsSvg(false);
......@@ -696,7 +698,7 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
pCheckArray = sExtendedOrDecompressedFirstBytes;
if(!bIsGZip)
if (bIsGZip)
{
nCheckSize = nDecompressedSize < 2048 ? nDecompressedSize : 2048;
}
......
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