Issue 104384 - WW8: exported doc having many sections in table causes page loop in Word
Summary: WW8: exported doc having many sections in table causes page loop in Word
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOO310m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 3.4.0
Assignee: openoffice
QA Contact: issues@sw
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2009-08-21 08:43 UTC by wdonne
Modified: 2017-05-20 10:30 UTC (History)
2 users (show)

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


Attachments
The document mentioned in the issue description (18.45 KB, application/vnd.oasis.opendocument.text)
2009-08-21 08:46 UTC, wdonne
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description wdonne 2009-08-21 08:43:51 UTC
Saving the attached document as Word 97 causes the load in Word 2007 to loop and generate an 
enormous amount of pages.

The actual Writer version I used was 000310m11 build 9399.
Comment 1 wdonne 2009-08-21 08:46:25 UTC
Created attachment 64289 [details]
The document mentioned in the issue description
Comment 2 wdonne 2009-08-21 10:43:35 UTC
I have discovered that the section elements cause the problem. After removing them the document opens 
in Word 2007.
Comment 3 michael.ruess 2009-08-21 12:18:39 UTC
MRU->HBRINKM: there is a multi-page table cell which itself contains some nested
tables and a lot of sections. The document exported correctly in OOo 3.0.
Since 3.0.1 there seems to be a problem with the inner tables and the sections.
It looks that every section creates a page break.
Additionally since OOo 3.1 the outer table cell becomes extremely narrow.
Comment 4 openoffice 2011-03-22 14:37:22 UTC
Analysis: The document t.odt has only one table cell which contains page breaks. The page breaks are introduced by paragraph with style "Heading 2". "Heading 2" is set to insert a page break before the paragraph it is applied to. Word does not allow page breaks inside table cells.
Comment 5 openoffice 2011-03-29 07:56:14 UTC
Analysis: MSWordExportBase::NoPageBreakSection checks for bIsInTable and only outputs a SectionNode if it not in a table by bIsInTable. Nevertheless section breaks are output inside tables.
Comment 6 openoffice 2011-03-29 08:03:09 UTC
Fixed in cws sw34bf06.
changeset: 713dcef8f169
Comment 7 openoffice 2011-03-29 08:03:31 UTC
@mst: Please review.
Comment 8 mst.ooo 2011-03-29 10:37:50 UTC
fix looks plausible to me.