summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-05-24 21:22:49 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-05-27 15:59:41 +0200
commit927963c53561a7609c6f0d80cbe0f36107cce5c6 (patch)
tree1dad6f618b981e30ed75d9d3fe35c6fb54b3f045
parentc2ae5e6acf081e52356a51d497c19f4c433e9638 (diff)
set all border lines, not only one
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
-rw-r--r--editeng/source/rtf/rtfitem.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index f482e560f8..da0aa48f99 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -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;
}