summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2011-01-10 21:18:18 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2011-03-19 17:57:17 +0100
commitb3e31b39053885062acae787e4994bd9cfa648a2 (patch)
tree0e31820a0ff8c3ebc88e1e561a0303acfe1e23dc /editeng/source
parent056dbf2e1d1933280175db152eaaf09ef4234ac1 (diff)
Uninitiallized members in SvxBorderLine copy constructor
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/items/borderline.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index c7ba4e242f..e429a04fc9 100644
--- a/editeng/source/items/borderline.cxx
+++ b/editeng/source/items/borderline.cxx
@@ -220,6 +220,8 @@ SvxBorderLine& SvxBorderLine::operator=( const SvxBorderLine& r )
m_nWidth = r.m_nWidth;
m_aWidthImpl = r.m_aWidthImpl;
m_bMirrorWidths = r.m_bMirrorWidths;
+ m_nMult = r.m_nMult;
+ m_nDiv = r.m_nDiv;
m_nStyle = r.m_nStyle;
m_bUseLeftTop = r.m_bUseLeftTop;
m_pColorOutFn = r.m_pColorOutFn;
@@ -287,7 +289,7 @@ sal_uInt16 SvxBorderLine::GetOutWidth() const
{
sal_uInt16 nOut = (sal_uInt16)Scale( m_aWidthImpl.GetLine1( m_nWidth ), m_nMult, m_nDiv );
if ( m_bMirrorWidths )
- nOut = (sal_uInt16)Scale( m_aWidthImpl.GetLine1( m_nWidth ), m_nMult, m_nDiv );
+ nOut = (sal_uInt16)Scale( m_aWidthImpl.GetLine2( m_nWidth ), m_nMult, m_nDiv );
return nOut;
}
@@ -295,7 +297,7 @@ sal_uInt16 SvxBorderLine::GetInWidth() const
{
sal_uInt16 nIn = (sal_uInt16)Scale( m_aWidthImpl.GetLine2( m_nWidth ), m_nMult, m_nDiv );
if ( m_bMirrorWidths )
- nIn = (sal_uInt16)Scale( m_aWidthImpl.GetLine2( m_nWidth ), m_nMult, m_nDiv );
+ nIn = (sal_uInt16)Scale( m_aWidthImpl.GetLine1( m_nWidth ), m_nMult, m_nDiv );
return nIn;
}