summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-28 20:45:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-28 20:51:00 +0100
commit4d88c6dee6d57fa9c366b67624842aefa429f527 (patch)
tree5dbe254b8d92c85ab56498bd88142cd4da59698e
parent8a421be2b155a24ac673456284652214c72bd645 (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
-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 1a436cd42239..ddabb5f1323c 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -235,14 +235,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;
}