also remove font color. I observed similar interaction between other character properties as well when
using cursor.setPropertyToDefault
Runnable python3 example in the attachment.
Originally observed from java code.
LibreOffice
Version: 6.4.6.2
Build ID: 1:6.4.6-0ubuntu0.20.04.1
Code: Select all
#
# *** TEST ***
#
text.insertString( cursor, "(upright black)" , 0 )
cursor.setPropertyValue( "CharColor", 0xff4040 )
cursor.setPropertyValue( "CharPosture", ITALIC )
text.insertString( cursor, "(color italic)" , 0 )
cursor.setPropertyToDefault( "CharPosture") ## removes italic (OK), but removes CharColor as well (not OK)
text.insertString( cursor, "(upright, should have color)" , 0 ) ## lost the color