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

            Bug ID: 159134
           Summary: Forms Listeners stop working after a different sheet
                    is activated
           Product: LibreOffice
           Version: 7.5.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I am putting together an example to demonstrate building a form from python.
The example automatically creates control and adds them to the spreadsheet.
Event listeners are added to the form controls.

Everything works fine until I select another sheet and then go back to the
sheet that has the form controls.
Many of form control events no longer work. I even tried reattaching the events
but no luck.

Interestingly some events still work such as property events using
XPropertyChangeListener and spin events using XSpinListener

Other listeners such as XItemListener and XTextListener stop working after
sheet regains focus.

More details and example links are found on ASK:
https://ask.libreoffice.org/t/calc-form-controls-stop-working-when-sheet-is-de-activated-why/100427



Steps to Reproduce:
1. Add a form control to a Calc Sheet
2. Attach a listener to the form control
3. Assert that event listener work ( it should )
4. Switch to another sheet
5. Switch to sheet that contains form.

Actual Results:
After switching back some listeners such as Other listeners such as
XItemListener and XTextListener stop working.

Expected Results:
Listeners continue to work.


Reproducible: Always


User Profile Reset: No

Additional Info:
Also as noted in my post on ASK the model no longer are attached to the
controls after switching to another sheet and back again.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to