summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-28 20:45:19 +0100
committerDavid Tardon <dtardon@redhat.com>2014-04-29 11:00:48 +0000
commitf793a5a2847e5fe03ccacf7127c153a76863d468 (patch)
treece134b73ba8420fa5e81bc00f1058534a018100f
parent3bedb85460b028500ff450eeeb80acf8278df39e (diff)
Related: fdo#64161 pstoedit not writing file until its closed
there's more to this than that, but at least its consistent this way and not differing per person. Its a bit unfortunate that pstoedit can't render the text in this example either though. Change-Id: I6f6bb7f83ed23dfc0f6b5c5f2b00753fa7190a8d (cherry picked from commit 4d88c6dee6d57fa9c366b67624842aefa429f527) Reviewed-on: https://gerrit.libreoffice.org/9196 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r--filter/source/graphicfilter/ieps/ieps.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx
index 7da240f92059..94bf6ac544e7 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -234,14 +234,14 @@ static bool RenderAsEMF(const sal_uInt8* pBuf, sal_uInt32 nBytesRead, Graphic &r
osl_closeFile(pOut);
}
if (pErr) osl_closeFile(pErr);
+ osl_joinProcess(aProcess);
+ osl_freeProcessHandle(aProcess);
if (nCount == nBytesRead && bEMFSupported)
{
SvFileStream aFile(output, STREAM_READ);
if (GraphicConverter::Import(aFile, rGraphic, CVT_EMF) == ERRCODE_NONE)
bRet = true;
}
- osl_joinProcess(aProcess);
- osl_freeProcessHandle(aProcess);
return bRet;
}