set all border lines, not only one

Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
This commit is contained in:
Markus Mohrhard
2011-05-24 21:22:49 +02:00
committed by Cédric Bosdonnat
parent 520a933254
commit 1eb96d6cf6

View File

@@ -1431,25 +1431,41 @@ void SvxRTFParser::ReadBorderAttr( int nToken, SfxItemSet& rSet,
case RTF_CLBRDRT: // Cell top border
{
if( bTableDef )
{
if (nBorderTyp != 0)
SetBorderLine( nBorderTyp, aAttr, aBrd );
nBorderTyp = RTF_BRDRT;
}
break;
}
case RTF_CLBRDRB: // Cell bottom border
{
if( bTableDef )
{
if (nBorderTyp != 0)
SetBorderLine( nBorderTyp, aAttr, aBrd );
nBorderTyp = RTF_BRDRB;
}
break;
}
case RTF_CLBRDRL: // Cell left border
{
if( bTableDef )
{
if (nBorderTyp != 0)
SetBorderLine( nBorderTyp, aAttr, aBrd );
nBorderTyp = RTF_BRDRL;
}
break;
}
case RTF_CLBRDRR: // Cell right border
{
if( bTableDef )
{
if (nBorderTyp != 0)
SetBorderLine( nBorderTyp, aAttr, aBrd );
nBorderTyp = RTF_BRDRR;
}
break;
}