[Libreoffice-bugs] [Bug 125421] 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 Jul 21 09:20:39 UTC 2020


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

--- Comment #6 from Mike Kaganski <mikekaganski at hotmail.com> ---
We actually do create a new object each time a range object is requested (see
e.g. ScTableSheetsObj::GetObjectByIndex_Impl[1], which implements functionality
of XIndexAccess::getByIndex). So at least in case of range objects (which have
their range read-only, thus for all uses should be considered "same" when refer
to same range), we need some special casing to check if they are objects of the
same type (e.g., one could be "sheet", and the other "all cells, but not
sheet", and these are different objects), and then refer to the same range.

https://git.libreoffice.org/core/+/1c3eb7e329cd2eaeb83068907ba0c9a5b3ef7852/sc/source/ui/unoobj/docuno.cxx#3577

-- 
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/20200721/5f52dbdf/attachment.htm>


More information about the Libreoffice-bugs mailing list