https://bugs.documentfoundation.org/show_bug.cgi?id=145873

--- Comment #6 from Hossein <[email protected]> ---
(In reply to Bartosz from comment #4)
> Created attachment 176481 [details]
> Extracted EMF image from attachment 80471 [details]
> 
> It seems that regression is inside EMF files, but changes made by Hossein is
> only in WMF import:
> 
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=5e4e1cdb1e14354b42838e1dfcf82873b3071896
> 
> https://git.libreoffice.org/core/+/
> d25906087918c085239aac30fd72cb65aa7b9eb4%5E%21
EMF can have WMF embedded inside it. The attachment 176480 is an EMF consisting
of several "GDIcomment" records in which one of them (with index 5) embeds a
Placeable WMF file without some records related to the size of the WMF. It
reaches pStm->SetError( SVSTREAM_FILEFORMAT_ERROR ); in
emfio/source/reader/wmfreader.cxx:1982 which causes to the problem in loading
the file.

I am providing a fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to