To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=109117 Issue #|109117 Summary|[sw] SwXTextSection::setPropertyToDefault("IsAutomatic |Update") Component|Word processor Version|DEV300m71 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|programming Assigned to|mst Reported by|mst
------- Additional comments from [email protected] Wed Feb 10 17:44:46 +0000 2010 ------- SwXTextSection::setPropertyToDefault("IsAutomaticUpdate") does not work; it only will crash. when the section is not inserted: Sub Main xSection = thiscomponent.createInstance("com.sun.star.text.TextSection") xSection.setPropertyToDefault("IsAutomaticUpdate") End Sub and also when it is inserted. Sub Main xSection = thiscomponent.createInstance("com.sun.star.text.TextSection") xCursor = thiscomponent.getText().createTextCursor() thiscomponent.getText().insertTextContent(xCursor, xSection, false) xSection.setPropertyToDefault("IsAutomaticUpdate") End Sub reason is that we call a method on a copy of the SwSection, which never has the required link actually set up. --------------------------------------------------------------------- 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]
