diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-01-10 21:18:18 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-03-19 17:57:17 +0100 |
commit | 9818095b8ee55ce45e2ff5b9b0d92b7e1484a45d (patch) | |
tree | 2351153340791562d54fc2d52f0f357487b0bab6 /editeng | |
parent | 56702c9eb5b423054addf753ca19b3fda94d47cf (diff) |
Uninitiallized members in SvxBorderLine copy constructor
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/borderline.cxx | 6 |
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; } |