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

Eike Rathke erack at kemper.freedesktop.org
Tue Feb 7 13:57:55 PST 2012


 sc/source/ui/unoobj/cellsuno.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f7adca07343b804efc4e42bed2b4a8d789e58db3
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.
    
    Signed-off-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 63ba3ef..4c5c5c5 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 ) );


More information about the Libreoffice-commits mailing list