[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source
matteocam
matteo.campanelli at gmail.com
Mon Jul 27 01:37:15 PDT 2015
svx/source/svdraw/textchaincursor.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 1f2fe5b38c95e88775d4807d0f06fd78ac56c174
Author: matteocam <matteo.campanelli at 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;
}
More information about the Libreoffice-commits
mailing list