[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source

matteocam matteo.campanelli at gmail.com
Wed Jul 29 10:12:44 PDT 2015


 svx/source/svdraw/svdedxv.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ba90284faa3fe85ad061ff72a9f9cca54ff8fb2d
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Wed Jul 29 19:12:07 2015 +0200

    Check for links instead of chainabity when handling key input
    
    Change-Id: Id8a7892ab5465b85a79a4347a6653de8c975416c

diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 9324ffd..02f7df0 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -543,6 +543,7 @@ void SdrObjEditView::ImpMoveCursorAfterChainingEvent(TextChainCursorManager *pCu
 
     SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>(mxTextEditObj.get());
 
+    // Check if it has links to move it to
     if (!pTextObj->IsChainable())
         return;
 
@@ -1288,7 +1289,7 @@ TextChainCursorManager *SdrObjEditView::ImpHandleMotionThroughBoxesKeyInput(
     else
         return NULL;
 
-    if (!pTextObj->IsChainable())
+    if (!pTextObj->GetNextLinkInChain() && !pTextObj->GetPrevLinkInChain())
         return NULL;
 
     TextChainCursorManager *pCursorManager = new TextChainCursorManager(this, pTextObj);


More information about the Libreoffice-commits mailing list