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

matteocam matteo.campanelli at gmail.com
Wed May 27 13:43:25 PDT 2015


 svx/source/svdraw/svdotext.cxx |   19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

New commits:
commit 80beb86011a47f7133403a71656d5a3ccdb58ef5
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Wed May 27 16:42:14 2015 -0400

    Experiment: push text immediately after overflow with impCopyTextInTextObj
    
    Change-Id: I6b4cc853f55ce63f7901160fecd118559036bec5

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 178f0b9..b9190ce 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1959,23 +1959,10 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
             SetToBeChained( pEditStatus->IsPageOverflow() );
             fprintf(stderr, "[CHAINING] Need for Chaining is %s\n",
                 pEditStatus->IsPageOverflow() ? "TRUE" : "FALSE");
+            // Trying to copy stuff right away
+            SdrTextObj *pNextTextObj = GetNextLinkInChain();
+            impCopyTextInTextObj(pNextTextObj);
 
-            /*
-             *  XXX: I can see problems with circular chains here:
-             *        If there is such a circular chain we get back
-             *        to the first box and so on...
-            */
-
-            //if ( IsRecursiveChaining() ) {
-                // set non overflowing text
-
-                /*
-                 * XXX: what's with the Outliner?
-                 * It may be that we are calling it in the wrong moment.
-                 * But if we don't call it here, where?
-                */
-
-            //}
         }
     }
 }


More information about the Libreoffice-commits mailing list