summaryrefslogtreecommitdiff
path: root/editeng/source/items
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
commit9818095b8ee55ce45e2ff5b9b0d92b7e1484a45d (patch)
tree2351153340791562d54fc2d52f0f357487b0bab6 /editeng/source/items
parent56702c9eb5b423054addf753ca19b3fda94d47cf (diff)
Uninitiallized members in SvxBorderLine copy constructor
Diffstat (limited to 'editeng/source/items')
-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 c7ba4e242f2a..e429a04fc980 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;
}