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

matteocam matteo.campanelli at gmail.com
Mon Jul 6 09:52:51 PDT 2015


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

New commits:
commit 133b8446a7054505f77e5ad37d959802db7b1122
Author: matteocam <matteo.campanelli at 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;


More information about the Libreoffice-commits mailing list