[Libreoffice-commits] .: sw/source
Joseph Powers
jpowers at kemper.freedesktop.org
Mon Dec 13 18:21:55 PST 2010
sw/source/ui/index/cnttab.cxx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 03e13b100e3c4759547af06bd37fd10f87539ebc
Author: Joseph Powers <jpowers27 at cox.net>
Date: Mon Dec 13 18:21:44 2010 -0800
revert removal patch
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index fbd65bb..6745f7d 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3359,15 +3359,16 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn )
if(nMove)
{
// move the complete list
- for ( TOXControlList::iterator it = aControlList.begin(); it != aControlList.end(); ++it )
+ Control* pCtrl = aControlList.First();
+ do
{
Control* pCtrl = *it;
Point aPos = pCtrl->GetPosPixel();
aPos.X() += nMove;
pCtrl->SetPosPixel(aPos);
- }
- aLeftScrollWin.Enable(aControlList.front()->GetPosPixel().X() < 0);
- Control* pCtrl = aControlList.back();
+ }while(0 != (pCtrl = aControlList.Next()));
+ aLeftScrollWin.Enable(aControlList.First()->GetPosPixel().X() < 0);
+ pCtrl = aControlList.Last();
aRightScrollWin.Enable((pCtrl->GetPosPixel().X() + pCtrl->GetSizePixel().Width()) > nSpace);
#if OSL_DEBUG_LEVEL > 1
More information about the Libreoffice-commits
mailing list