Bug 126892 - visibility of cut/pasted section cannot be programmatically changed
Summary: visibility of cut/pasted section cannot be programmatically changed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Section Macro-UNOAPI
  Show dependency treegraph
 
Reported: 2019-08-13 18:45 UTC by Lionel Elie Mamane
Modified: 2023-04-13 03:23 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
reproduction document (10.95 KB, application/vnd.oasis.opendocument.text)
2019-08-13 18:46 UTC, Lionel Elie Mamane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lionel Elie Mamane 2019-08-13 18:45:48 UTC
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
Comment 1 Lionel Elie Mamane 2019-08-13 18:46:16 UTC
Created attachment 153355 [details]
reproduction document
Comment 2 Xisco Faulí 2019-10-23 14:40:19 UTC
Reproduced in

Version: 6.4.0.0.alpha1+
Build ID: 437dc68285dab0f08a1ded2193d86d64f560cd9b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

and

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 patrick.gelin 2021-04-12 06:14:42 UTC
reproduced with :

Version: 7.1.2.2 / LibreOffice Community
Build ID: 8a45595d069ef5570103caea1b71cc9d82b2aae4
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Note : I tested 2 documents + 1 I'm programming to toggle sections. When I open a document, sections are visbles and it's ok with checkbox. But when I'm playing with checkbox interface to toogle sections, all document could hide sections but never display it after that ... But I can then active check box to diplay section then close the document, open it and section is visible.
Comment 4 QA Administrators 2023-04-13 03:23:45 UTC
Dear Lionel Elie Mamane,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug