https://bugs.freedesktop.org/show_bug.cgi?id=81463
Priority: medium
Bug ID: 81463
Assignee: [email protected]
Summary: UNO: No refresh after calling setPropertyToDefault
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: 4.4.0.0.alpha0+ Master
Component: sdk
Product: LibreOffice
Created attachment 102984
--> https://bugs.freedesktop.org/attachment.cgi?id=102984&action=edit
Example document
Since LibreOffice 4.1 the setPropertyToDefault UNO call doesn't work as
expected any more: When resetting a property ("CharBackColor" in this case)
with setPropertyToDefault, the view is not updated (i.e. the background color
doesn't change in this case).
When scrolling the text out of the view and in again, pressing enter in any
line or inserting a character the background color is suddenly correct.
Steps to reproduce:
- Open the attached document and allow macro execution
- Double click on the text "Test" in the document to select it
- Select "Macro_Colorize" -> "Mark" from the menu bar; the text now has blue /
cyan background
- Select "Macro_Colorize" -> "Unmark" from the menu bar; the background
_should_ be white again, however the cyan background is still present
- Press Enter; the background changed to the expected transparent / white from
the previous step now.
The error occurs on every release since 4.1 and also in last week's daily build
of master.
The BASIC code for reference:
Sub Mark
oDoc = ThisComponent
range = oDoc.CurrentController.getViewCursor
range.setPropertyValue("CharBackColor", 44444)
End Sub
Sub Unmark
oDoc = ThisComponent
range = oDoc.CurrentController.getViewCursor
range.setPropertyToDefault("CharBackColor")
End Sub
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs