diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-27 15:11:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-28 06:25:28 +0000 |
commit | 4391d400e01e4a756d03d357d81e9769c34ae83b (patch) | |
tree | be0c136884f5c77d3494e9bce492937fde79bb2a /svx/source/sidebar | |
parent | 2a4c68a6ffa46eb7b6d7fafdf5e9c19970cdd6a5 (diff) |
loplugin:singlevalfields in svx
Change-Id: I7a2d11e1343f6382c3556c4536fc8ae40e210b74
Reviewed-on: https://gerrit.libreoffice.org/26710
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 6 | ||||
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 155e2a3fc2e7..53f5e9dd17c6 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -59,7 +59,6 @@ PosSizePropertyPanel::PosSizePropertyPanel( mpView(nullptr), mlOldWidth(1), mlOldHeight(1), - meRP(RP_LT), maAnchorPos(), mlRotX(0), mlRotY(0), @@ -80,7 +79,6 @@ PosSizePropertyPanel::PosSizePropertyPanel( m_aMetricCtl(SID_ATTR_METRIC, *pBindings, *this), maContext(), mpBindings(pBindings), - mbMtrPosXMirror(false), mbSizeProtected(false), mbPositionProtected(false), mbAutoWidth(false), @@ -825,7 +823,7 @@ void PosSizePropertyPanel::executeSize() // put Width & Height to itemset SfxUInt32Item aWidthItem( SID_ATTR_TRANSFORM_WIDTH, (sal_uInt32) lWidth); SfxUInt32Item aHeightItem( SID_ATTR_TRANSFORM_HEIGHT, (sal_uInt32) lHeight); - SfxAllEnumItem aPointItem (SID_ATTR_TRANSFORM_SIZE_POINT, (sal_uInt16)meRP); + SfxAllEnumItem aPointItem (SID_ATTR_TRANSFORM_SIZE_POINT, (sal_uInt16)RP_LT); const sal_Int32 nCombinedContext(maContext.GetCombinedContext_DI()); if( nCombinedContext == CombinedEnumContext(Application_WriterVariants, Context_Graphic) @@ -856,8 +854,6 @@ void PosSizePropertyPanel::executePosX() if ( mpMtrPosX->IsValueModified()) { long lX = GetCoreValue( *mpMtrPosX, mePoolUnit ); - if( mbMtrPosXMirror ) - lX = -lX; long lY = GetCoreValue( *mpMtrPosY, mePoolUnit ); Fraction aUIScale = mpView->GetModel()->GetUIScale(); diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index 9ec990c4d135..755c563d26f7 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -113,7 +113,6 @@ private: const SdrView* mpView; sal_uInt32 mlOldWidth; sal_uInt32 mlOldHeight; - RECT_POINT meRP; Point maAnchorPos; //anchor position long mlRotX; long mlRotY; @@ -140,7 +139,6 @@ private: SfxBindings* mpBindings; /// bitfield - bool mbMtrPosXMirror : 1; bool mbSizeProtected : 1; bool mbPositionProtected : 1; bool mbAutoWidth : 1; |