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

matteocam matteo.campanelli at gmail.com
Wed May 27 15:39:09 PDT 2015


 svx/source/svdraw/svdotext.cxx              |    7 +++++--
 svx/source/svdraw/svdotextdecomposition.cxx |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 160d35600f9ede4bd354db4f4f0203f2f396f86a
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Wed May 27 18:38:36 2015 -0400

    Insert fixed string when chaining occurs
    
    Change-Id: I0a16523810d2aea20e4abc181494e5bac8b7c091

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index b9190ce..7cdc878 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1960,8 +1960,11 @@ void SdrTextObj::onEditOutlinerStatusEvent( EditStatus* pEditStatus )
             fprintf(stderr, "[CHAINING] Need for Chaining is %s\n",
                 pEditStatus->IsPageOverflow() ? "TRUE" : "FALSE");
             // Trying to copy stuff right away
-            SdrTextObj *pNextTextObj = GetNextLinkInChain();
-            impCopyTextInTextObj(pNextTextObj);
+
+            if (pEditStatus->IsPageOverflow()) {
+                SdrTextObj *pNextTextObj = GetNextLinkInChain();
+                impCopyTextInTextObj(pNextTextObj);
+            }
 
         }
     }
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx
index 06f1c27..de34777 100644
--- a/svx/source/svdraw/svdotextdecomposition.cxx
+++ b/svx/source/svdraw/svdotextdecomposition.cxx
@@ -742,7 +742,7 @@ void SdrTextObj::impCopyTextInTextObj(SdrTextObj *pNextTextObj) const
     // trying to copy text in obj 1
     //SdrText* pText = getActiveText();
 
-    SdrOutliner& rOutliner = pNextTextObj->ImpGetDrawOutliner();
+    //SdrOutliner& rOutliner = pNextTextObj->ImpGetDrawOutliner();
     //rOutliner.SetUpdateMode(true);
     //rOutliner.SetStatusEventHdl1(LINK(this,SdrTextObj,ImpDecomposeChainedText));
     // XXX: experimental code 27/5/15


More information about the Libreoffice-commits mailing list