diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-31 16:49:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-03 12:41:46 +0200 |
commit | 437d5d30422014c0a6def06e432a41e3f2e5c4c5 (patch) | |
tree | cc2a1d6892131a6627ab879eea11df8ef17958f4 /sw/source/core/layout/wsfrm.cxx | |
parent | 2a933f0b9444792c9a6b1273238d3c36ca590686 (diff) |
move identity checks into B3DHomMatrix::operator*=
and consequently simplify some call-sites
Change-Id: I301fc4c88fdfb8af75a348a41593a27f4c6567c5
Reviewed-on: https://gerrit.libreoffice.org/59916
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/wsfrm.cxx')
-rw-r--r-- | sw/source/core/layout/wsfrm.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index cdce7870a536..bc41904eea2c 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -274,18 +274,8 @@ void TransformableSwFrame::restoreFrameAreas() // transform by given B2DHomMatrix void TransformableSwFrame::transform(const basegfx::B2DHomMatrix aTransform) { - if(!aTransform.isIdentity()) - { - if(!maFrameAreaTransformation.isIdentity()) - { - maFrameAreaTransformation *= aTransform; - } - - if(!maFramePrintAreaTransformation.isIdentity()) - { - maFramePrintAreaTransformation *= aTransform; - } - } + maFrameAreaTransformation *= aTransform; + maFramePrintAreaTransformation *= aTransform; } SwFrame::SwFrame( SwModify *pMod, SwFrame* pSib ) |