[Libreoffice-commits] .: Branch 'libreoffice-3-4' - editeng/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Fri May 27 07:00:00 PDT 2011


 editeng/source/rtf/rtfitem.cxx |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit 927963c53561a7609c6f0d80cbe0f36107cce5c6
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue May 24 21:22:49 2011 +0200

    set all border lines, not only one
    
    Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>

diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index f482e56..da0aa48 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;
             }
 


More information about the Libreoffice-commits mailing list