[Libreoffice-commits] core.git: svx/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Sun Jun 25 10:47:46 UTC 2017
svx/source/svdraw/svdibrow.cxx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
New commits:
commit df134d2d1b935c7b74d2e135c3041f7c25de3c13
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Sun Jun 25 10:40:56 2017 +0200
remove unused local vars
since commit 95c348afa8f4f17c058c449ded75025175af0e4a
loplugin:unusedfields in svx part2
Change-Id: I6d5f3704f4efef0a9fb69623f46a216c509c8302
Reviewed-on: https://gerrit.libreoffice.org/39229
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx
index f3aab1a70f86..ee42d01815d8 100644
--- a/svx/source/svdraw/svdibrow.cxx
+++ b/svx/source/svdraw/svdibrow.cxx
@@ -446,13 +446,8 @@ void SdrItemBrowserControl::ImpSaveWhich()
{
sal_uInt16 nWh=GetCurrentWhich();
if (nWh!=0) {
- long nPos=GetCurrentPos();
- long nTop=GetTopRow();
- long nBtm=GetTopRow()+GetVisibleRows()+1;
nLastWhich=nWh;
- nLastWhichOfs=nPos-nTop;
- if (nTop<0) nTop=0;
- if (nBtm>=(long)aList.size()) nBtm=aList.size()-1;
+ nLastWhichOfs=GetCurrentPos()-GetTopRow();
}
}
More information about the Libreoffice-commits
mailing list