Kaydet (Commit) f5c3f560 authored tarafından Björgvin Ragnarsson's avatar Björgvin Ragnarsson Kaydeden (comit) Caolán McNamara

Improves fdo#41407: Make gs a higher priority than convert for EPS rendering.

This speeds up EPS loading on systems where convert is configured to execute
gs for conversion instead of using libgs. This seems to be how convert is compiled
on most linux distos.

Change-Id: Ibfc95bff11076d286b6ba210d2db2129ac0bb45b
Reviewed-on: https://gerrit.libreoffice.org/6009Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d3ca3691
......@@ -342,10 +342,10 @@ static bool RenderAsPNGThroughGS(const sal_uInt8* pBuf, sal_uInt32 nBytesRead,
static bool RenderAsPNG(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, Graphic &rGraphic)
{
if (RenderAsPNGThroughConvert(pBuf, nBytesRead, rGraphic))
if (RenderAsPNGThroughGS(pBuf, nBytesRead, rGraphic))
return true;
else
return RenderAsPNGThroughGS(pBuf, nBytesRead, rGraphic);
return RenderAsPNGThroughConvert(pBuf, nBytesRead, rGraphic);
}
// this method adds a replacement action containing the original wmf or tiff replacement,
......
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