Kaydet (Commit) 5935a6db authored tarafından Luboš Luňák's avatar Luboš Luňák

column break without columns seems to be a page break (bnc#750255)

That at least seems to be my conclusion after testing the doc
and bnc#652364 in MSO2k7.

Change-Id: Iec172dad32ba47c1f843df49a4eaff688c094373
üst f6d9b4af
......@@ -3886,8 +3886,10 @@ void wwSectionManager::InsertSegments()
mySegIter aStart = maSegments.begin();
for (mySegIter aIter = aStart; aIter != aEnd; ++aIter)
{
// If the section is of type "New column" (0x01), then simply insert a column break
if ( aIter->maSep.bkc == 1 )
// If the section is of type "New column" (0x01), then simply insert a column break.
// But only if there actually are columns on the page, otherwise a column break
// seems to be handled like a page break by MSO.
if ( aIter->maSep.bkc == 1 && aIter->maSep.ccolM1 > 0 )
{
SwPaM start( aIter->maStart );
mrReader.rDoc.InsertPoolItem( start, SvxFmtBreakItem(SVX_BREAK_COLUMN_BEFORE, RES_BREAK), 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment