summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2013-12-27 09:45:05 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2013-12-27 09:45:05 +0100
commitdbd8a631bb23c588f52102e5dd2a61c9cd854bc3 (patch)
treec72ca51997a6201f8ddca4f8974faf8df26e09f3
parent824425734b9ff974204b8a6623792215c148c1cb (diff)
Fix stepping to the next change
Bug description: In the "Accept or Reject Changes" dialog, when select a change (it should be after the first few ones) and clicking "Accept" or "Reject" button, acception/rejection is made but after it not the next change is selected for futher work, but a random one. This bug doesn't appear in all case, just if changes are complex enough. Solution: The nPos means absolute position so we have to get the next entry with the corresponding GetEntryAtAbsPos() method. It seems simple position can differ from absolute positions if changes are complex enough. Change-Id: I7996f81c2a09c492f9334f071591291d200d533f
-rw-r--r--sw/source/ui/misc/redlndlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index 298058b0de2b..907cdfeb74ea 100644
--- a/sw/source/ui/misc/redlndlg.cxx
+++ b/sw/source/ui/misc/redlndlg.cxx
@@ -833,9 +833,9 @@ void SwRedlineAcceptDlg::CallAcceptReject( sal_Bool bSelect, sal_Bool bAccept )
{
if( nPos >= pTable->GetEntryCount() )
nPos = pTable->GetEntryCount() - 1;
- pEntry = pTable->GetEntry( nPos );
+ pEntry = pTable->GetEntryAtAbsPos( nPos );
if( !pEntry && nPos-- )
- pEntry = pTable->GetEntry( nPos );
+ pEntry = pTable->GetEntryAtAbsPos( nPos );
if( pEntry )
{
pTable->Select( pEntry );