[Libreoffice-bugs] [Bug 125421] New: The Basic function EqualUnoObjects wrongly returns False for two variables having assigned the same object by different ways of access.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 21 13:52:47 UTC 2019


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

            Bug ID: 125421
           Summary: The Basic function EqualUnoObjects wrongly returns
                    False for two variables having assigned the same
                    object by different ways of access.
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jag at psilosoph.de

Created attachment 151563
  --> https://bugs.documentfoundation.org/attachment.cgi?id=151563&action=edit
The example announced in the report

(E.g.)
Having a sheet with a shape anchored to a cell we can get the cell using the
sheet's method getCellByPosition. We can get the same cell object via the
shape's .Anchor property.
Now we can apply the function EqualUnoObjects() to the two representations of
the same object.
Expected result: True
Actual result:   False
Thorough inspection of both representations in the IDE doesn't show any
differences. Same (respective) result for
EqualUnoObjects(ThisComponent.Sheets.GetByIndex(0), _
ThisComponent.Sheets.GetByName("Sheet1"))

If the function not was implemented for the comparison of ANY kind of objects,
but only for UnoStruct e.g. this should be explicitly stated somewhere (since I
assume that a respective change of the name not is acceptable). The result in
cases of undue application concerning the type of objects should be an error
then instead of the nwrong (at least gravely misleading) False.

Testing was done with OOo V3.2 and with LibO V 6.2.3.2

The behaviour obviously is common heritage of LibO and AOO.

See attached demo.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190521/8b991fee/attachment.html>


More information about the Libreoffice-bugs mailing list