[Libreoffice-commits] .: 2 commits - sc/source sw/source

Michael Stahl mst at kemper.freedesktop.org
Fri Feb 3 13:14:20 PST 2012


 sc/source/ui/unoobj/cellsuno.cxx  |    3 +--
 sw/source/core/unocore/unotbl.cxx |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 697743161a6047902ee880851b23c9aef1bfa392
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Feb 3 21:06:18 2012 +0100

    fdo#45115: sc: fix setting borders
    
    Same problem in ScHelperFunctions::GetBorderLine.

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 1bddc21..7844d9f 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -953,8 +953,7 @@ ScSubTotalFunc lcl_SummaryToSubTotal( sheet::GeneralFunction eSummary )
 const ::editeng::SvxBorderLine* ScHelperFunctions::GetBorderLine( ::editeng::SvxBorderLine& rLine, const table::BorderLine& rStruct )
 {
     //  Calc needs Twips, and there are 1/100mm in the Uno structure
-    rLine.SetStyle( ::editeng::SvxBorderStyle( table::BorderLineStyle::SOLID ) );
-    rLine.GuessLinesWidths( rLine.GetStyle(),
+    rLine.GuessLinesWidths( editeng::NO_STYLE,
         (sal_uInt16)HMMToTwips( rStruct.OuterLineWidth ),
         (sal_uInt16)HMMToTwips( rStruct.InnerLineWidth ),
         (sal_uInt16)HMMToTwips( rStruct.LineDistance ) );
commit ef9881001e4ddfa6bfbe7d83f482393bb76d926a
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Feb 3 18:49:56 2012 +0100

    fdo#45115: SwXTextTable: fix setting borders
    
    This plus e549f52f16c4a519ed3eddb9c66c19bacc247590 fixes the problem.

diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index a928d15..9526160 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -136,7 +136,7 @@ sal_Bool lcl_LineToSvxLine(const table::BorderLine& rLine, SvxBorderLine& rSvxLi
 {
     rSvxLine.SetColor(Color(rLine.Color));
 
-    rSvxLine.GuessLinesWidths( editeng::SvxBorderStyle(table::BorderLineStyle::SOLID),
+    rSvxLine.GuessLinesWidths( editeng::NO_STYLE,
                                 MM100_TO_TWIP( rLine.OuterLineWidth ),
                                 MM100_TO_TWIP( rLine.InnerLineWidth ),
                                 MM100_TO_TWIP( rLine.LineDistance ) );


More information about the Libreoffice-commits mailing list