[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source
matteocam
matteo.campanelli at gmail.com
Wed Jun 17 14:34:26 PDT 2015
svx/source/svdraw/svdotext.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 408b16a197b6fdf2dcedecb4531b5507dd5c350f
Author: matteocam <matteo.campanelli at 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);
}
More information about the Libreoffice-commits
mailing list