diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 20:45:19 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-04-30 14:57:02 +0200 |
commit | 224400ba424d9897318de29b056d3d372e4c7a39 (patch) | |
tree | 3200593d316dc747f4be1076f61080cdd0694417 /filter | |
parent | a626ca69dba85deee8dfc46cccbff770e808ae9b (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>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ieps/ieps.cxx | 4 |
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; } |