Unittest problem with service com.sun.star.drawing.GraphicExportFilter

Regina Henschel rb.henschel at t-online.de
Tue Oct 25 16:24:39 UTC 2022


Hi all,

this is about https://gerrit.libreoffice.org/c/core/+/141830
tdf#83671 SmartArt: preserve pos and size for metafile

If you try the patch, you will see, that the SmartArt is imported in 
Calc as group object with one child object. The child is a 
"com.sun.star.drawing.GraphicObjectShape". Copying to Draw shows, that 
it is indeed a metafile. So the patch seems to be correct.

But the unit test fails. It has the warning
warn:oox.drawingml:2860:13240:oox/source/drawingml/shape.cxx:2039: 
Shape::renderDiagramToGraphic com.sun.star.uno.DeploymentException 
message: "component context fails to supply service 
com.sun.star.drawing.GraphicExportFilter of type 
com.sun.star.drawing.XGraphicExportFilter"

The warning comes from method create() from class GraphicExportFilter, 
where creating of "the_instance" fails. And so indeed no metafile is 
created.

I have no idea about the reason as in a normal running LO the import 
works and resaving as ods or xlsx has no problems.

Could you please help me?

Kind regards,
Regina


More information about the LibreOffice mailing list