diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-24 21:22:49 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-05-27 15:59:41 +0200 |
commit | 927963c53561a7609c6f0d80cbe0f36107cce5c6 (patch) | |
tree | 1dad6f618b981e30ed75d9d3fe35c6fb54b3f045 /editeng | |
parent | c2ae5e6acf081e52356a51d497c19f4c433e9638 (diff) |
set all border lines, not only one
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/rtfitem.cxx | 16 |
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; } |