[Libreoffice-bugs] [Bug 144299] New: SheetCellRanges service cant FindAll or ReplaceAll if .Count=1 / simple SheetCellRange also can't.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 4 21:18:41 UTC 2021


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

            Bug ID: 144299
           Summary: SheetCellRanges service cant FindAll or ReplaceAll if
                    .Count=1 / simple SheetCellRange also can't.
           Product: LibreOffice
           Version: 3.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jag at psilosoph.de

Created attachment 174779
  --> https://bugs.documentfoundation.org/attachment.cgi?id=174779&action=edit
the announced attachment

If a .FindAll(searchDescriptor) or a .ReplaceAll(searchDescriptor) is called
from a SfheetCellRange service or from a SheetCellRanges service containing
exactly one range (.Count=1) there is no action. 
The foundRanges is Null, and the replacement not executed.

This I recently experienced with LibO V 7.2.0.4, but also trying old versions
(32 bit) I found that even a version as early as 3.5.2 ad the bug.  

I couldn't test with versions in-betwwen, but the heritage version 3.3. was not
afflicted. (AOO 4.1.7 also isn't.)  

Trying the code contained in the attached example should exemplify the bug. 
Run it with only a single range of the first sheet selected --> failure
Select a second range OR the tab of the second sheet in addition --> success.

-- 
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/20210904/6882082b/attachment.htm>


More information about the Libreoffice-bugs mailing list