summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-06-13 10:09:21 +0200
committerNoel Grandin <noel@peralex.com>2015-06-15 13:34:14 +0200
commit4ea281a3ccb5bd21e1808d8cb127a91a1bb72691 (patch)
tree183a2ab634d770b7ef777323fa6851fc38e14011 /svtools
parent943f4b4ff1c524c514584c459b899ba3e9dfb71f (diff)
cppcheck:redundantAssignment
Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 8771f040b965..f4a1deebd2e2 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -420,9 +420,8 @@ void SvImpLBox::PageDown( sal_uInt16 nDelta )
}
else
{
- long nScroll = nRealDelta * (-1);
Rectangle aArea( GetVisibleArea() );
- nScroll = pView->GetEntryHeight() * static_cast<long>(nRealDelta);
+ long nScroll = pView->GetEntryHeight() * static_cast<long>(nRealDelta);
nScroll = -nScroll;
pView->Update();
pView->Scroll( 0, nScroll, aArea, ScrollFlags::NoChildren );