Issue 117863

Summary: hidden section: crash + hidden only partly works
Product: Writer Reporter: Oliver Brinzing <oliver.brinzing>
Component: formattingAssignee: Mathias_Bauer
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Normal    
Priority: P2 CC: binbjguo, eric.savary, issues, Mathias_Bauer, niklas.nebel, orw, pet.ebe
Version: 3.4.0 Beta (OOo)Keywords: crash, regression
Target Milestone: 3.4.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
test_hidden_sections none

Description Oliver Brinzing 2011-04-15 08:48:29 UTC
Created attachment 76387 [details]
test_hidden_sections

steps to reproduce:

- open attached writer document
- F5 (Navigator) -> Sections
- Hide Section "Bereich1.1" (Edit -> Hide)
- "Bereich1.1" is still visible
- save and reload document
- "Bereich1.1" is hidden now

in oo 3.2/3.3 the section will hide immediatelly after hiding ...
-> regression
Comment 1 eric.savary 2011-04-15 09:13:04 UTC
@OD: this is worst than described...

1) Hiding a simple - not embedded section like in the sample document - section will hide the section boundaries but not its content (text). Saving, reloading and un-hiding the section will display the text 2 times.

2) Showing the Options dialog (i.e. to change the background) of an hidden section will crash.

Both are regressions compared to 3.3. Assuming those problems have the same root cause.
Comment 2 eberlein 2011-04-15 09:18:48 UTC
.
Comment 3 Oliver-Rainer Wittmann 2011-04-15 09:24:31 UTC
confirmed and accepted.
start working on this issue
Comment 4 Oliver-Rainer Wittmann 2011-04-15 12:26:00 UTC
*** Issue 117831 has been marked as a duplicate of this issue. ***
Comment 5 Oliver-Rainer Wittmann 2011-04-15 13:15:30 UTC
fixed in cws sw34bf06
- correction of hidden section feature:
/sw/inc/section.hxx,
/sw/source/core/layout/sectfrm.cxx,
/sw/source/core/docnode/section.cxx,
/sw/source/core/docnode/ndsect.cxx,
change set http://hg.services.openoffice.org/cws/sw34bf06/rev/d2030e65b6b9
- fix for the crash using the option dialog of hidden sections
/sw/source/core/frmedt/feshview,cxx,
change set http://hg.services.openoffice.org/cws/sw34bf06/rev/ec59153c0f36

od->mba: please review the fix.
Comment 6 Mathias_Bauer 2011-04-15 15:24:56 UTC
both patches are fine.
Comment 7 Oliver-Rainer Wittmann 2012-06-13 12:23:01 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 8 binguo 2012-06-18 07:03:02 UTC
Verified it on Aoo_Trunk_20120616.1800.1350879 and it does not reproduce, the section will hide immediatelly after hiding in step 3, so close it as fixed.