summaryrefslogtreecommitdiff
path: root/svx/source/dialog/charmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-29 15:04:58 +0200
committerNoel Grandin <noel@peralex.com>2016-03-01 08:30:28 +0200
commit5e913234da65484778d53179ee2005aec01d0f0e (patch)
tree7532854c855220fd110f6340f5c9c8e53af117b9 /svx/source/dialog/charmap.cxx
parent595f46344e18fd6275ff7b862269e4c131449591 (diff)
loplugin:unuseddefaultparam in svx (part2)
Change-Id: I99e3d6137ec17e3fc782253c85e5fa4f1da4cec4
Diffstat (limited to 'svx/source/dialog/charmap.cxx')
-rw-r--r--svx/source/dialog/charmap.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 61519208f610..6855141fcdb0 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -653,7 +653,7 @@ void SvxShowCharSet::OutputIndex( int nNewIndex )
}
-void SvxShowCharSet::SelectCharacter( sal_UCS4 cNew, bool bFocus )
+void SvxShowCharSet::SelectCharacter( sal_UCS4 cNew )
{
if (mxFontCharMap == nullptr)
RecalculateFont(*this);
@@ -662,13 +662,10 @@ void SvxShowCharSet::SelectCharacter( sal_UCS4 cNew, bool bFocus )
sal_UCS4 cNext = mxFontCharMap->GetNextChar( (cNew > 0) ? cNew - 1 : cNew );
int nMapIndex = mxFontCharMap->GetIndexFromChar( cNext );
- SelectIndex( nMapIndex, bFocus );
- if( !bFocus )
- {
- // move selected item to top row if not in focus
- aVscrollSB->SetThumbPos( nMapIndex / COLUMN_COUNT );
- Invalidate();
- }
+ SelectIndex( nMapIndex );
+ // move selected item to top row if not in focus
+ aVscrollSB->SetThumbPos( nMapIndex / COLUMN_COUNT );
+ Invalidate();
}