svx/source/svdraw/svdedxv.cxx |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

New commits:
commit c97795e6edf9613292b7ccef0283582dd4cbe8a9
Author: matteocam <matteo.campane...@gmail.com>
Date:   Mon Jul 6 13:04:09 2015 -0400

    Go to previous position
    
    Change-Id: Iaa4954ee8a0a99ccdce70653ba5d84ef2acf1c79

diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 92fd231..c775ab1 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -488,20 +488,28 @@ IMPL_LINK_NOARG(SdrObjEditView,ImpChainingEventHdl)
         SdrTextObj* pTextObj = dynamic_cast< SdrTextObj * >( 
mxTextEditObj.get() );
         if( pTextObj )
         {
+            OutlinerView* pOLV = GetTextEditOutlinerView();
+            assert(pOLV);
+            // Save previous selection pos
+            ESelection aPreChainingSel(pOLV->GetSelection());
+
+            // trigger actual chaining
             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);
+            // Selection at end of editing area
+            ESelection 
aEndSel(nLastParaIndex,nLenLastPara,nLastParaIndex,nLenLastPara);
+            */
 
-            pOLV->SetSelection(aSel);
+            pOLV->SetSelection(aPreChainingSel);
 
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to