summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/notxtfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-07 09:31:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-07 09:55:05 +0100
commit977ccf4b0fffc178ad550bda47421db5bc4c82fd (patch)
tree97a4114435930be2f08b9df9a14091e02f1a07cf /sw/source/core/doc/notxtfrm.cxx
parent57d4cd80dcaf01fe4897d79d89e906d355410243 (diff)
loplugin:collapseif in sw
Change-Id: I61e32f6ecaf72d51528af4b067d651a17691d4b1 Reviewed-on: https://gerrit.libreoffice.org/62986 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/notxtfrm.cxx')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index cea0bdb9a591..4f5cc43636ad 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -690,13 +690,10 @@ bool SwNoTextFrame::GetCharRect( SwRect &rRect, const SwPosition& rPos,
else
rRect.Intersection_( aFrameRect );
- if ( pCMS )
+ if ( pCMS && pCMS->m_bRealHeight )
{
- if ( pCMS->m_bRealHeight )
- {
- pCMS->m_aRealHeight.setY(rRect.Height());
- pCMS->m_aRealHeight.setX(0);
- }
+ pCMS->m_aRealHeight.setY(rRect.Height());
+ pCMS->m_aRealHeight.setX(0);
}
return true;