summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-03 21:06:18 +0100
committerEike Rathke <erack@redhat.com>2012-02-07 21:47:16 +0100
commitb979d1b9ddb97737ac9cf3c8b72bc4d4eba3ede1 (patch)
tree2f23c0aff9373bedb4068ba7f99abe277da79986 /sc
parent511a92733bcf970e4154833a352d565bd3167e26 (diff)
fdo#45115: sc: fix setting borders
Same problem in ScHelperFunctions::GetBorderLine. (cherry picked from commit 697743161a6047902ee880851b23c9aef1bfa392) Signed-off-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 423e324cc3ee..e44ae325b2e0 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 ) );