[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sw/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Feb 27 07:48:45 PST 2015


 sw/source/uibase/docvw/edtwin.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 34759884acb4ffe51aa6b7004d1aae7550745b75
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Feb 27 16:44:23 2015 +0100

    SwEditWin::SetCursorLogicPosition: use SwCrsrShell::getShellCrsr
    
    Using raw GetCrsr() would return the shell cursor even if there is a
    table cursor. With this, if there is a table selection, the selection
    start handle can properly shrink and expand the start of the selection.
    
    Change-Id: Ic525071639333a00bb5a03a3dd74c4f8052e24f7

diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 751a7e1..482c142 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -6262,10 +6262,10 @@ void SwEditWin::SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool
     // If the mark is to be updated, then exchange the point and mark before
     // and after, as we can't easily set the mark.
     if (!bPoint)
-        rShell.GetCrsr()->Exchange();
+        rShell.getShellCrsr(/*bBlock=*/false)->Exchange();
     rShell.SetCrsr(rPosition);
     if (!bPoint)
-        rShell.GetCrsr()->Exchange();
+        rShell.getShellCrsr(/*bBlock=*/false)->Exchange();
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list