summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-04-04 19:22:52 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-04-04 19:42:04 +0400
commit33619919036457e3a37c4c47a8cef274d55253a8 (patch)
tree18d13dc411606c8081916e6c7da88fab826dc8e7 /sw
parentb49f69aee6f48fb9367a2a9548182dcd84eb5296 (diff)
reuse existent function
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/index/cnttab.cxx10
1 files changed, 1 insertions, 9 deletions
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);