sw/source/ui/misc/redlndlg.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d58b0f970a217bf4fc74c7832dc8cf369aae7509
Author: Zolnai Tamás <tamas.zol...@collabora.com>
Date:   Fri Dec 27 09:45:05 2013 +0100

    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)

diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index 7885bb4..f1cc96d 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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to