From 4d88c6dee6d57fa9c366b67624842aefa429f527 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 28 Apr 2014 20:45:19 +0100 Subject: 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 --- filter/source/graphicfilter/ieps/ieps.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter') 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; } -- cgit