svx/source/svdraw/textchaincursor.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 1f2fe5b38c95e88775d4807d0f06fd78ac56c174 Author: matteocam <matteo.campane...@gmail.com> Date: Mon Jul 27 10:35:30 2015 +0200 Minor changes Change-Id: Ibdf1c035a110eb2f95e430fe02d5e01f4ab90247 diff --git a/svx/source/svdraw/textchaincursor.cxx b/svx/source/svdraw/textchaincursor.cxx index 9f4e000..6daf59b 100644 --- a/svx/source/svdraw/textchaincursor.cxx +++ b/svx/source/svdraw/textchaincursor.cxx @@ -77,6 +77,8 @@ void TextChainCursorManager::impDetectEvent(const KeyEvent& rKEvt, sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode(); ESelection aCurSel = pOLV->GetSelection(); + ESelection aEndSelPrevBox(100000, 100000); + sal_Int32 nLastPara = pOutl->GetParagraphCount()-1; OUString aLastParaText = pOutl->GetText(pOutl->GetParagraph(nLastPara)); sal_Int32 nLastParaLen = aLastParaText.getLength(); @@ -110,7 +112,7 @@ void TextChainCursorManager::impDetectEvent(const KeyEvent& rKEvt, if (nCode == KEY_LEFT && bAtStartOfTextContent && pPrevLink) { *pOutCursorEvt = CursorChainingEvent::TO_PREV_LINK; - *pOutSel = ESelection(100000, 100000); // Set at end of selection + *pOutSel = aEndSelPrevBox; // Set at end of selection *bOutHandled = true; // Nothing more to do than move cursor return; } @@ -119,7 +121,7 @@ void TextChainCursorManager::impDetectEvent(const KeyEvent& rKEvt, if (nCode == KEY_BACKSPACE && bAtStartOfTextContent && pPrevLink) { *pOutCursorEvt = CursorChainingEvent::TO_PREV_LINK; - *pOutSel = ESelection(100000, 100000); // Set at end of selection + *pOutSel = aEndSelPrevBox; // Set at end of selection *bOutHandled = false; // We need to delete characters after moving cursor return; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits