openlilylib / LO-ly

LibreOffice-LilyPond extension
13 stars 6 forks source link

"Direct" graphic import not supported by LO 6.1 #22

Closed KlausBlum closed 5 years ago

KlausBlum commented 5 years ago

As of LO 6.1.0.3, when OLy tries to insert the compiled image using the "Insert Image - Direct" setting, macro execution is aborted throwing an "incorrect property value" error. (Using the "Insert Image - Via Clipboard" setting still works.)

The problem is described here in the LO Dev mailing list.

It seems that this happens due to an image handling re-work in LO 6.1: http://document-foundation-mail-archive.969070.n3.nabble.com/API-CHANGE-dropping-string-properties-which-use-vnd-sun-star-GraphicObject-URL-tp4235349.html

LO developers promised to help, but in recent LO versions (6.1.1.2 and 6.2.0.0.alpha0+) the problem still persists: http://document-foundation-mail-archive.969070.n3.nabble.com/API-CHANGE-dropping-string-properties-which-use-vnd-sun-star-GraphicObject-URL-tp4235349p4247643.html

Hmmm. Let's wait and see how that story will continue...

KlausBlum commented 5 years ago

For Writer, the problem is fixed as of LO 6.1.2.1: http://document-foundation-mail-archive.969070.n3.nabble.com/API-CHANGE-dropping-string-properties-which-use-vnd-sun-star-GraphicObject-URL-tp4235349p4248883.html

Today's commit will find its way into OLy 0.5.8. This will work with older and newer OO and LO versions. The only incompatible LO release is 6.1.1.

For Draw and Impress, the problem still persists, but will be fixed in LO 6.3.0: https://bugs.documentfoundation.org/show_bug.cgi?id=120527#c13

It seems that everything is done for now. Keep waiting for the LO 6.3.0 release.

KlausBlum commented 5 years ago

Good news: The bugfix for Draw and Impress will be available in LibreOffice 6.1.5: https://bugs.documentfoundation.org/show_bug.cgi?id=120527#c19

KlausBlum commented 5 years ago

LibreOffice 6.1.5 and 6.2.0 are released now. As expected, for those new versions the problem with Draw and Impress is solved.

SUMMARY: For some LibreOffice versions, the OOoLilyPond setting "Insert Image: Direct" in the Options dialog will not work. As a workaround, "Insert Image: via Clipboard" can be used. The affected Versions are

With all earlier and later LibreOffice versions, OOoLilyPond 0.5.8 will work without the mentioned error.