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

            Bug ID: 101803
           Summary: Loss of hide with condition for a section when having
                    a second section behind
           Product: LibreOffice
           Version: 5.1.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: lothar.bec...@riess-app.de

Version: 5.1.5.2
Build ID: 7a864d8825610a8c07cfc3bc01dd4fce6a9447e5
CPU Threads: 8; OS Version: Windows 6.1; UI Render: default; 
Locale: de-DE (de_DE); Calc: single

Problem statement / Description:

Having a document with a user field for managing a hidden section and a
consecutive section (for the purpose of write protection) after inserting the
second section it will loss the condition statement with the user field when
changing the value of the user field

Steps to reproduce:

1. take the example document example4lostConditionSection.ott (it is a template
for multiple reproducemnt of the bug)

2. open a document of the template (double click on it)

3. save as result.odt (see that there is a paragraph written in red)

4. verify in menu fields - variables - userfield there is one defined with the
name showSection and the value 1  (the variable is positioned in the first line
of teh document)

5. change the value of the userfield showSection to 0 and verify, that the red
written paragraph is gone (it is a section with a hide with condition
showSection == 0)

6. Change the value of the userfield to 1, the paragraph written in red is
shown
(Please do not use the navigator in the sidebar to look after the sections, it
seems that there is a dependency on it)

7. now select the whole last paragraph and define a second section with write
protection on it and klick ok for it, save the document

8. now change the value of the showSection again, no hide Action is performed
any longer

9. if you now use the navigator and have a look at the section with the hide
with condition, you see that the condition statement changed to just "0", the
variable name and the condition == is gone (see as result the attached document
resultLostCondition.odt)

Expected behaviour
The mechanism of hiding the section is untouched and working still correct when
inserting another section in the document

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to