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

            Bug ID: 146065
           Summary: Assignment from array via a property getter suppresses
                    value of used element in any reference to the array
           Product: LibreOffice
           Version: 7.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Assignment like
   Result = MyInstance.ArrayProperty(3)
will return 0 or Empty (depending on type of Result and ArrayProperty) and
change the value of element with index 3 to 0 or Empty.


Steps to Reproduce:
1. Create and populate an array
2. Pass a reference to that array into a class using a setter on a Variant
property
3. Assign to a type compatible with an element in that array using the getter
for that array and referencing a specific element in that assignment


Actual Results:
4. All held references to the array will reflect that the element assigned FROM
will be suppressed to 0/Empty
5. Assignment will result in a value of 0/Empty


Expected Results:
Assignment should result in the assigned variable taking the value/reference
held as that array element and the array element itself should be left
unchanged


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
The context for this behavior is difficult to explain. Please see the attached
document which has taken efforts to demonstrate the behavior in a way that can
be tested quickly.

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

Reply via email to