summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-27 16:44:23 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-02 08:51:02 +0100
commit8c086b9f1401ef987435097b02e43a8dcb21bae3 (patch)
treec0430ea30ae3e422bbca4b721c9656f2ffddaa31 /sw/source/uibase/docvw
parent6650fe947d41bc43cb05b572acb50180799d5b91 (diff)
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
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index c9cda8ab0227..bf0b28dab29b 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -6263,10 +6263,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: */