To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=78896 Issue #|78896 Summary|missing update of indents/spacing properties when hidi |ng parts of the text via api Component|Word processor Version|OOo 2.2 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|mru Reported by|clutz
------- Additional comments from [EMAIL PROTECTED] Tue Jun 26 14:16:15 +0000 2007 ------- I will attach a textdocument and a small macro that shows, that there seems to be an update missing, when a part of the text is beeing hidden. the text looks like this: -- Sehr geehrte Damen und Herren, hier kommt der Text. Mit freundlichen Grüßen II. Abdruck von I. Polizeiinspektion III. WV Im Auftrag Max Mux -- Please Note: - the line "II. Abdruck von I." is formatted with an paragraph format, that defines some spacing befor the paragraph. - the line "Im Auftrag" is formatted with a paragraph format, that does NOT define any spacings before the paragraph. My Macro "missingUpdateWhenHidingBug" simply creates a textcursor, places it over the content "II. Abdruck von I. Polizeiinspektion III. WV" and hides the content. After hiding the three lines, I would expect the line "Im Auftrag" to be displayed directly below the line "Mit freundlichen Grüßen" without any spacing between the two paragraphs. But as you can see when you call the macro for the first time, there IS a spacing between the two paragraphs. Here is the macrocode "missingUpdateWhenHidingBug" (it's also included in the attached document): Sub missingUpdateWhenHidingBug t = ThisComponent.Text cursor = t.createTextCursorByRange(t.Start) cursor.gotoNextParagraph(false) ' place the cursor over the cursor.gotoNextParagraph(false) ' text: "II. Abdruck von I. cursor.gotoNextParagraph(false) ' Polizeiinspektion cursor.gotoNextParagraph(false) ' III. WV" cursor.gotoNextParagraph(false) cursor.gotoNextParagraph(true) cursor.gotoNextParagraph(true) cursor.gotoEndOfParagraph(true) cursor.CharHidden = true 'And hide the text ' cursor.CharHidden = false 'uncommenting these two lines is a workaround! ' cursor.CharHidden = true End Sub Here is how to reproduce: 1) Open the attached document missingUpdateWhenHidingBug 2) Call the included macro Standard.Module1.missingUpdateWhenHidingBug 3) now you can see, that there is some spacing between "Mit freundlichen Grüßen" and "Im Auftrag" which should not be. 4) If you unhide the part of the text (for example via the UI) and call the macro again, everything seems to be OK. As I noticed the behaviour described in 4), I got the idea for a workaround: just set Hidden=true, Hidden=false and Hidden=true again, and everything seems to be fine. To activate the workaround, simply uncomment the last two lines of the macro. --------------------------------------------------------------------- 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]