[Libreoffice-bugs] [Bug 126892] New: visibility of cut/pasted section cannot be programmatically be changed

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 13 18:45:48 UTC 2019


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

            Bug ID: 126892
           Summary: visibility of cut/pasted section cannot be
                    programmatically be changed
           Product: LibreOffice
           Version: 6.1.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: lionel at mamane.lu

Description:
The reproduction document has two sections (named Section1 and Section2,
respectively) inside the frame, one visible and one not visible. The UI calls
that "hidden" but the actual property is "IsVisible" and the negation of the UI
"hidden" checkbox.

The button launches a Basic procedure that toggles the visibility of the two
sections. Correct behaviour ("the macro works correctly") is that the section
visible before procedure execution is hidden, and the section hidden before
procedure execution is visible. Incorrect behaviour is that one or both
sections are not toggled.

For ease of observation, each section contains the text saying that that
section is visible, and the Basic procedure checks whether the change it
requested has been performed, and indicates success or failure in a pop-up
MessageBox.

Steps to Reproduce:
1. Set Macro security to medium (or low)
2. Open reproduction document
3. Accept macro execution (if prompted, i.e. macro security is on medium)
4. Click button (repeatedly)
5. Select the frame
6. Cut (Cntrl-X)
7. Paste  (Cntrl-V)
8. Click button (once, repeatedly, ...)
9. save document
10. Use menu Format / Sections to see that the two sections are still there,
and still have the same name, and its visibility can be successfully changed
through the UI.
11. close document; do not save
12. open document again
13. Accept macro execution (if prompted, i.e. macro security is on medium)
14. Click button (repeatedly)


Actual Results:
At step 4, the macro works correctly.
At step 8, the macro doesn't work.
At step 14, the macro works correctly.

Expected Results:
The macro works at steps 4, 8 and 14.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Debian-provided package
Version: 6.1.5.2
Build ID: 1:6.1.5-3
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.utf8); 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/20190813/5984f967/attachment-0001.html>


More information about the Libreoffice-bugs mailing list