svx/source/svdraw/svdotext.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 408b16a197b6fdf2dcedecb4531b5507dd5c350f
Author: matteocam <matteo.campane...@gmail.com>
Date:   Wed Jun 17 17:32:11 2015 -0400

    Sets dest box's text by resetting it on underflow
    
    Change-Id: I4276e37536e834f79b79acea2b0f2a8b2182f632

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 3713040..64d1937 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -2010,6 +2010,11 @@ void SdrTextObj::onUnderflowStatusEvent( )
         aDrawOutliner.SetText(*pCurText);
         aDrawOutliner.AddText(*pNextLinkWholeText);
         OutlinerParaObject *pNewText = aDrawOutliner.CreateParaObject();
+
+        // 2) Set the text of the next guy to what is left
+        // (since this happens automatically by overflow we just "order to" 
reset the destination box's text)
+        GetTextChain()->SetOverwriteOnOverflow(pNextLink, true);
+
         const_cast<SdrTextObj*>(this)->NbcSetOutlinerParaObject(pNewText);
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to