https://bugs.documentfoundation.org/show_bug.cgi?id=151451
Bug ID: 151451
Summary: SearchDescriptor returns wrong result when Tracking
enabled
Product: LibreOffice
Version: 6.2.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Created attachment 182939
--> https://bugs.documentfoundation.org/attachment.cgi?id=182939&action=edit
Doc with Sample Text and Macro
SearchDescriptor in macro finds specified regex pattern in overwritten text
when Tracking Changes is enabled (but old text not visible). No issue when
Tracking is disabled in document.
Tested against the versions of LO I have on my Windows 10 system,
it does NOT occur on LibreOffice 5.4.7.2 x64
but it DOES on LibreOffice 6.2.0.3 x64
Sample document with macro attached. Simple test macro to exhibit the problem
is as follows,
Dim oDoc:oDoc = ThisComponent
Dim sDescriptor
sDescriptor = oDoc.createSearchDescriptor
Dim regx: regx = "[:digit:][:digit:]:[:digit:][:digit:]:[:digit:][:digit:]"
sDescriptor.SearchString = regx
sDescriptor.SearchRegularExpression = True
Dim oVC: oVC = oDoc.CurrentController.getViewCursor()
dim r, oText
r = oDoc.findnext(oVC.end(),sDescriptor)
oVC.gotoRange(r.end(), false)
--
You are receiving this mail because:
You are the assignee for the bug.