incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119548] [From Symphony]paragraph>pagination>Window/Orphan control setting lost after save the .doc file by aoo 3.4
Date Thu, 09 Aug 2012 01:19:14 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119548

--- Comment #2 from Lei Debin <debin.lei@gmail.com> ---
The root cause is the Window control&Orphan not added to style by default
value.
Actually there is a code line to do it(in void WW8RStyle::Set1StyleDefaults()):
.......
if( pIo->pWDop->fWidowControl && !bWidowsChanged )  // Widows ?
{
     pIo->pAktColl->SetFmtAttr( SvxWidowsItem( 2, RES_PARATR_WIDOWS ) );
     pIo->pAktColl->SetFmtAttr( SvxOrphansItem( 2, RES_PARATR_ORPHANS ) );
} 
.......

The logic is not run by wrong condition pIo->pWDop->fWidowControl.
The value is init in WW8Dop::WW8Dop(SvStream& rSt, sal_Int16 nFib, sal_Int32
nPos, sal_uInt32 nSize)
......
      fFacingPages        = 0 != ( a16Bit  &  0x0001 )     ;
        fWidowControl       = 0 != ( a16Bit  &  0x0002 )     ;
        fPMHMainDoc         = 0 != ( a16Bit  &  0x0004 )     ;
......
But the value is not meaningful, in doc specification is should be ignored and
MUST not used.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message