diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-07 11:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-07 14:55:55 +0200 |
commit | c89f73a6033b28484f5e10054b542fa69a9fe475 (patch) | |
tree | c4c503b8b3745f8a97ab6eef1ecf46a3ee2c46b0 /svtools | |
parent | 00ecf7899a97d09ecf4a8b6d81b10e1f66903f5a (diff) |
loplugin:unuseddefaultparams
Change-Id: Id895d61c0bbea99379bb6e9b4e6d6c54da4c98db
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 3 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 24 |
2 files changed, 2 insertions, 25 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index e14761ffe188..eea834df2c0d 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -358,8 +358,7 @@ public: void SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, - const Point& rPos, - bool bAdjustRow = false + const Point& rPos ); void InvalidateEntry( SvxIconChoiceCtrlEntry* ); diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index c8f25367cf89..4da1d8a02a8a 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -1687,8 +1687,7 @@ void SvxIconChoiceCtrl_Impl::PaintEntry(SvxIconChoiceCtrlEntry* pEntry, const Po rRenderContext.SetClipRegion(); } -void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const Point& rPos, - bool bAdjustAtGrid ) +void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const Point& rPos ) { ShowCursor( false ); Rectangle aBoundRect( GetEntryBoundRect( pEntry )); @@ -1708,27 +1707,6 @@ void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const pEntry->aGridRect.SetPos( rPos + aGridOffs ); bAdjustVirtSize = true; } - if( bAdjustAtGrid ) - { - if( bAdjustVirtSize ) - { - // By aligning the (in some cases newly positioned) entry, it - // can become completely visible again, so that maybe we don't - // need a scrollbar after all. To avoid suddenly turning the - // scrollbar(s) on and then off again, we use the aligned - // bounding rectangle of the entry to enlarge the virtual - // output size. The virtual size has to be adapted, because - // AdjustEntryAtGrid depends on it. - const Rectangle& rBoundRect = GetEntryBoundRect( pEntry ); - Rectangle aCenterRect( CalcBmpRect( pEntry )); - Point aNewPos( AdjustAtGrid( aCenterRect, rBoundRect ) ); - Rectangle aNewBoundRect( aNewPos, pEntry->aRect.GetSize()); - AdjustVirtSize( aNewBoundRect ); - bAdjustVirtSize = false; - } - AdjustEntryAtGrid( pEntry ); - ToTop( pEntry ); - } if( bAdjustVirtSize ) AdjustVirtSize( pEntry->aRect ); |