To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108646
                 Issue #|108646
                 Summary|Setting properties on a non-inserted style doesn't wor
                        |k
               Component|Word processor
                 Version|OOo 3.2 RC3
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|programming
             Assigned to|writerneedsconfirm
             Reported by|cedricbosdo





------- Additional comments from [email protected] Mon Jan 25 11:00:29 
+0000 2010 -------
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

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to