summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-09-11 16:45:41 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-09-15 18:45:57 +0200
commit922e4ba2994c914a8b393723fbee28529abd8a6b (patch)
treee1d09f80fa9e12bb48fe68acd438f539b851513f /sc
parent1ae3638dbf82239ab3e64cbbc8ab34394a3fa1e2 (diff)
Use the shorter GetScaledWidth() method
Change-Id: Id3ad483d3830310b8d13c86e407ff88d9a709464
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/attrib.cxx4
-rw-r--r--sc/source/ui/view/printfun.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index ce572b930369..2ec52ec9fc01 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -67,8 +67,8 @@ bool ScHasPriority( const ::editeng::SvxBorderLine* pThis, const ::editeng::SvxB
if (!pOther)
return true;
- sal_uInt16 nThisSize = pThis->GetOutWidth() + pThis->GetDistance() + pThis->GetInWidth();
- sal_uInt16 nOtherSize = pOther->GetOutWidth() + pOther->GetDistance() + pOther->GetInWidth();
+ sal_uInt16 nThisSize = pThis->GetScaledWidth();
+ sal_uInt16 nOtherSize = pOther->GetScaledWidth();
if (nThisSize > nOtherSize)
return true;
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 0a7cb3289b73..388f08d7dcdc 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -165,7 +165,7 @@ size_t ScPageRowEntry::CountVisible() const
static long lcl_LineTotal(const ::editeng::SvxBorderLine* pLine)
{
- return pLine ? ( pLine->GetOutWidth() + pLine->GetInWidth() + pLine->GetDistance() ) : 0;
+ return pLine ? ( pLine->GetScaledWidth() ) : 0;
}
void ScPrintFunc::Construct( const ScPrintOptions* pOptions )