[Libreoffice] [PUSHED] Re: [PATCH] [EPS Export] Fix "Save as Picture"

Caolán McNamara caolanm at redhat.com
Tue Feb 1 03:17:38 PST 2011


On Tue, 2011-02-01 at 13:54 +0900, KUROSAWA, Takeshi wrote:
> Hi,
> 
> Currently "Save as Picture" feature in Writer, Impress, or Draw
> produces a broken EPS file when I save an image as EPS format.
> # Export feature produces a correct file.
> 
> Here is a patch to fix this issue.

Seems reasonable, if the graphic doesn't have a metafile, i.e. is a
bitmap then render the bitmap into a temporary metafile and export that
instead. Thanks for this, now pushed.

I did add another tweak to basically retain and use the original else
branch, but this time only if the metafile returned from
GetGDIMetaFile() has an ActionCount.

C.



More information about the LibreOffice mailing list