summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-25 13:46:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-26 07:30:07 +0100
commit9e23683b4c91c60e39839a03cfa6adc436a9afeb (patch)
treec63efbe4a1b51c495dae1867cf04f4cf2c617f8d /vcl/source/window/toolbox.cxx
parent55febfff803fd0a49a8b24fd7dc16253e70bd28e (diff)
loplugin:singlevalfields
Change-Id: I4a56a27ebce927b8e21cf37bb2c527caf1317bcc Reviewed-on: https://gerrit.libreoffice.org/69681 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx27
1 files changed, 3 insertions, 24 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 671814e2c646..c7bc19f089c1 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2988,33 +2988,12 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow )
void ToolBox::ShowLine( bool bNext )
{
-
mbFormat = true;
- if ( mpData->mbPageScroll )
- {
- ImplToolItems::size_type delta = mnVisLines;
- if ( bNext )
- {
- mnCurLine = mnCurLine + delta;
- if ( mnCurLine+mnVisLines-1 > mnCurLines )
- mnCurLine = mnCurLines - mnVisLines+1;
- }
- else
- {
- if( mnCurLine >= delta+1 )
- mnCurLine = mnCurLine - delta;
- else
- mnCurLine = 1;
- }
- }
+ if ( bNext )
+ mnCurLine++;
else
- {
- if ( bNext )
- mnCurLine++;
- else
- mnCurLine--;
- }
+ mnCurLine--;
ImplFormat();
}