Issue 108646 - Setting properties on a non-inserted style doesn't work
Summary: Setting properties on a non-inserted style doesn't work
Status: CLOSED DUPLICATE of issue 108426
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 3.2 RC3
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: writerneedsconfirm
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2010-01-25 11:00 UTC by cedric.bosdonnat.ooo
Modified: 2010-01-25 11:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description cedric.bosdonnat.ooo 2010-01-25 11:00:29 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
Comment 1 Oliver Specht 2010-01-25 11:09:06 UTC
Duplicate of 108426



*** This issue has been marked as a duplicate of 108426 ***
Comment 2 michael.ruess 2010-01-25 11:16:46 UTC
Closing duplicate.