| Summary: | New Find objects created for each call to Selection.Find | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Hannah Meeks <hmeeks4135> |
| Component: | Writer | Assignee: | Hannah Meeks <hmeeks4135> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aron.budea, ilmari.lauhakangas, xiscofauli |
| Priority: | medium | ||
| Version: | 7.5.0.0 alpha0+ | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:7.5.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108908 | ||
|
Description
Hannah Meeks
2022-06-29 17:16:39 UTC
With Selection.Find .ClearFormatting .Text = "hi" .Execute Forward:=True End With - This would make a new object for every line which ends up not executing anything useful! :-) Let's put this one as ASSIGNED since you assigned yourself :-) Hannah Meeks committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f6be2bf969bac1f5c6ac452b313374ba09ffaa58 tdf#149775 - VBA: Find should stay around. It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Looks like this can be changed to fixed status. Thanks. Hi Hannah Meeks, would it be possible to have a unittest for this issue ? |