[Libreoffice-bugs] [Bug 124688] New: Libreoffice Impress doesn't save macros or documents for interaction

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 11 13:08:21 UTC 2019


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

            Bug ID: 124688
           Summary: Libreoffice Impress doesn't save macros or documents
                    for interaction
           Product: LibreOffice
           Version: 6.1.5.1 rc
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rknop at pobox.com

Description:
When you add an interaction to an object, the macro (in the case of "Run
Macro") or the location of the document (in the case of "Go To Document") does
not survive save and reload.

For example, in the case of "Run Macro", if I add a macro to an object, it runs
just fine thereafter clicking on the object.  The identity of the macro shows
up in the "Macro" widget on the dialog that opens when you right-click on the
object and select "Interaction....".

If I save the document, exit LibreOffice, and reopen the document, the macro is
lost.  The "Macro" widget on the interaction dialog is now empty.

Steps to Reproduce:
1. Create an object in Impress (e.g. a rectangle).
2. Create a simple standard macro.  (I have one that uses "Shell" to run an
external program that plays a video.)
3. Right click on the object and select "Interaction..."
4. For "Action at mouse click:", select "Run macro"
5. Click "Browse" at the bottom right, to the right of the Macro text widget.
6. Find and select the macro, and click "OK".  Now you see in the Interaction
dialog the specificaion of the macro in the "Macro" text widget.
7. Click "OK" in the interaction dialog.
8. Click on the object; the macro runs.
9. Save the document.
10. Exit LibreOffice
11. Restart LibreOffice, reload the document.  (Make sure to enable macros when
prompted.)
12. Right-click on the object and select "Interaction..."
13. Now, the "Macro" text widget in the Interaction dialog is empty.

NOTE: the same exact thing happens if instead of running a macro, I select "Go
to document" for action at mouse click.  Everything runs fine until I exit and
reload LibreOffice.  So, it's not a Macro problem per se, but a problem with
saving the information about the interaction.

I had the same problem with LibreOffice 5.

Actual Results:
See Step 13 in reproduction: the macro to run is lost, even though the object
interaction still thinks it should be running a macro.

NOTE: the same exact thing happens if instead of running a macro, I select "Go
to document" for action at mouse click.  Everything runs fine until I exit and
reload LibreOffice.  So, it's not a Macro problem per se, but a problem with
saving the information about the interaction.

I had the same problem with LibreOffice 5.

Expected Results:
The macro to run, or the document to open, should be saved with the Impress
file, so that when I load it back into Impress the information is still there.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.1.5.1
Build ID: 1:6.1.5~rc1-2~bpo9+1
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190411/35c97dc2/attachment.html>


More information about the Libreoffice-bugs mailing list