Apache OpenOffice (AOO) Bugzilla – Issue 108646
Setting properties on a non-inserted style doesn't work
Last modified: 2010-01-25 11:16:46 UTC
Running the following UNO Basic code on a text document should add a "foo" style with a red character color. on 3.2 it creates the "foo" style but the red color isn't set. Sub Main oDoc = ThisComponent oStyles = oDoc.StyleFamilies.getByName( "CharacterStyles" ) oStyle = oDoc.createInstance( "com.sun.star.style.CharacterStyle" ) oStyle.CharColor = RGB( 255, 0, 0 ) oStyles.insertByName( "foo", oStyle ) End Sub Notes: * the bug only happens when setting the property before inserting the style * the same happens for paragraph styles
Duplicate of 108426 *** This issue has been marked as a duplicate of 108426 ***
Closing duplicate.