diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2013-12-27 09:45:05 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2013-12-27 09:50:18 +0100 |
commit | d58b0f970a217bf4fc74c7832dc8cf369aae7509 (patch) | |
tree | f62857304816801187fc1a63efe7ca2368b7e769 | |
parent | 903e342844bdc923c8270eed7d26e3faee9f1870 (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
(cherry picked from commit dbd8a631bb23c588f52102e5dd2a61c9cd854bc3)
-rw-r--r-- | sw/source/ui/misc/redlndlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx index 7885bb402ec2..f1cc96d630e5 100644 --- a/sw/source/ui/misc/redlndlg.cxx +++ b/sw/source/ui/misc/redlndlg.cxx @@ -830,9 +830,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 ); |