Apache OpenOffice (AOO) Bugzilla – Issue 110015
UserField property IsFieldDisplayed gives wrong values
Last modified: 2017-05-20 11:15:27 UTC
If hidden formatted text locates in the same paragraph as a userfield, the XProperty "IsFieldDisplayed" always returns false. This makes this property unusable for extensions. To reproduce, see the attached doc.
Created attachment 68272 [details] file to reproduce
Reassigned to JSK
Assign to new default-assignee
Reassigned to TBO.
I set default formating to make all visible on paragraph: result is true. Then just setting the first test-characters to hidden, result is again false. ->confirmed; OS? Code from Makro: Sub Main xFieldMasters = ThisComponent.getTextFieldMasters() if (xFieldMasters.hasByName("com.sun.star.text.FieldMaster.User.A")) then xFieldMaster = xFieldMasters.getByName("com.sun.star.text.FieldMaster.User.A") xDependentTextFields =xFieldMaster.DependentTextFields For i = lBound(xDependentTextFields()) to uBound(xDependentTextFields()) xField = xDependentTextFields(i) msgBox "Field is displayed: " & cBool( xField.isFieldDisplayed ) next End If End Sub
The problem seems to be in SwScriptInfo::GetBoundsOfHiddenRange(...)
Reset assigne to the default "issues@openoffice.apache.org".