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

libreoff...@arbruijn.dds.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |libreoff...@arbruijn.dds.nl

--- Comment #15 from libreoff...@arbruijn.dds.nl ---
Created attachment 119870
  --> https://bugs.documentfoundation.org/attachment.cgi?id=119870&action=edit
patch to ignore zero size for a graphic in docx

bug 89100 is about the uncovering of previously hidden errors, there are likely
multiple now visible errors.

I've investigated the problem for this document, and it's that the document has
a graphic with size 0, 0. (It contains the xml <a:graphic...<a:xfrm><a:off
x="0" y="0"/><a:ext cx="0" cy="0"/></a:xfrm>). This fails the test in
SwFormatFrmSize::PutValue (MID_FRMSIZE_SIZE) which makes
SfxItemPropertySet::setPropertyValue throw an IllegalArgumentException,
aborting the parser.

The attached patch skips setting the graphic size if the size is 0, 0. With
this patch applied I can open the document.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to