From 1eb96d6cf630f13af2a94e84ab3ef6f7c92a954c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 24 May 2011 21:22:49 +0200 Subject: [PATCH] set all border lines, not only one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Bosdonnat --- editeng/source/rtf/rtfitem.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index 7f94d5a721e4..d97c05b3d67f 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; }