From 33619919036457e3a37c4c47a8cef274d55253a8 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Wed, 4 Apr 2012 19:22:52 +0400 Subject: reuse existent function --- sw/source/ui/index/cnttab.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index bdcf6da8a8a9..63248e7761e1 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -3430,18 +3430,10 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn ) if(nMove) { // move the complete list + MoveControls(nMove); Control *pCtrl = 0; - for (ctrl_iterator it = aControlList.begin(); it != aControlList.end(); ++it) - { - pCtrl = *it; - - Point aPos = pCtrl->GetPosPixel(); - aPos.X() += nMove; - pCtrl->SetPosPixel(aPos); - } - pCtrl = *(aControlList.begin()); aLeftScrollWin.Enable(pCtrl->GetPosPixel().X() < 0); -- cgit