https://issues.apache.org/ooo/show_bug.cgi?id=119548

--- Comment #2 from Lei Debin <[email protected]> ---
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.

Reply via email to