summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-04-04 18:38:07 +0400
committerCaolán McNamara <caolanm@redhat.com>2012-04-05 15:27:12 +0100
commit37c1a9fde189f3010eec7392c44404e403555c52 (patch)
tree124a4e8e11227d5ff2daf1a87a853a1d6154cf3f
parent830c2151d48e0821b183348c1778856f7d85d296 (diff)
fdo#40948: TOC dialog, Entries tab: the right arrow button does not work
regression from 39b8a5f87f55abe53488c9c3c35b65fb0df84cd. (cherry picked from commit b49f69aee6f48fb9367a2a9548182dcd84eb5296) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/ui/index/cnttab.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 30f3a847d0a3..cb07f717fe54 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3419,7 +3419,7 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, ImageButton*, pBtn )
{
//move the right neighbor to the right edge right aligned
ctrl_reverse_iterator itRight = it;
- --it;
+ --itRight;
Control *pRight = *itRight;
nMove = nSpace - pRight->GetPosPixel().X() - pRight->GetSizePixel().Width();
}