svx/source/svdraw/svdedxv.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit 133b8446a7054505f77e5ad37d959802db7b1122
Author: matteocam <matteo.campane...@gmail.com>
Date:   Mon Jul 6 12:52:04 2015 -0400

    Move cursor at end of editing space after chaining
    
    Change-Id: Idca4d59e8361992aa4574d7833c45bd5ba25f7cc

diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 0f4a273..92fd231 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -489,6 +489,20 @@ IMPL_LINK_NOARG(SdrObjEditView,ImpChainingEventHdl)
         if( pTextObj )
         {
             pTextObj->onChainingEvent();
+
+            /* Cursor motion stuff */
+            OutlinerView* pOLV = GetTextEditOutlinerView();
+
+            // Find last Para
+            const sal_Int32 nParaCount = 
pTextEditOutliner->GetParagraphCount();
+            const sal_Int32 nLastParaIndex = nParaCount > 1 ? nParaCount - 1 : 
0;
+            Paragraph* pLastPara = pTextEditOutliner->GetParagraph( 
nLastParaIndex);
+            const sal_Int32 nLenLastPara = 
pTextEditOutliner->GetText(pLastPara).getLength();
+            // End of editing space
+            ESelection aSel = 
ESelection(nLastParaIndex,nLenLastPara,nLastParaIndex,nLenLastPara);
+
+            pOLV->SetSelection(aSel);
+
         }
     }
     return 0;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to