http://openoffice.org/bugzilla/show_bug.cgi?id=117995

        Issue Type: DEFECT
           Summary: Checkbox disappears when changing content of input
                    text field
    Classification: Application
           Product: Word processor
           Version: OOo 3.3
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: editing
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


Created an attachment (id=76494)
 --> (http://openoffice.org/bugzilla/attachment.cgi?id=76494)
document to reproduce the issue; contains macro

When you change the content of an input text field through a macro or an
extension using the UNO API, any checkboxes in the same document disappear
(they are still there but not shown until you refresh the window).

To easily reproduce the issue:
1. Open the attached document 'disappearing_checkbox.odt'.
2. Click on the button labelled "Change input field content". (This triggers a
macro that changes the content of the input field contained in the document.)
3. The result is that the two checkboxes (including their labels) in the
document disappear.


The code of the macro used to change the input field is the following:

vEnum = thisComponent.getTextFields().createEnumeration()
If Not IsNull(vEnum) Then
  Do While vEnum.hasMoreElements()
    vVal = vEnum.nextElement()
    If vVal.supportsService("com.sun.star.text.TextField.Input") then
        vVal.setPropertyValue("Content", "Input field content changed!")
        vVal.update()
    End If
  Loop
End If

-- 
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to