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

matteocam matteo.campanelli at gmail.com
Fri Jul 10 15:19:45 PDT 2015


 svx/source/svdraw/textchainflow.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7ebce5de15644a99c3ff209aa2adadbb110e670b
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Fri Jul 10 18:18:32 2015 -0400

    Set MaxAutoPaperSize explicitly after NbcSetOutlinerParaObj
    
    Change-Id: I00b0f02818b8e1192dc88420f443cedc61beb2a1

diff --git a/svx/source/svdraw/textchainflow.cxx b/svx/source/svdraw/textchainflow.cxx
index 8907e3a..d144d28 100644
--- a/svx/source/svdraw/textchainflow.cxx
+++ b/svx/source/svdraw/textchainflow.cxx
@@ -150,8 +150,10 @@ void TextChainFlow::ExecuteUnderflow(SdrOutliner *pOutl)
 
     mpTargetLink->NbcSetOutlinerParaObject(pNewText);
 
+    // Restore size and set new text
     pOutl->SetMaxAutoPaperSize(aOldSize);
     pOutl->SetText(*pNewText);
+    pOutl->SetMaxAutoPaperSize(Size(pOutl->GetMaxAutoPaperSize().Width(), pOutl->GetTextHeight()));
 
     //GetTextChain()->SetNilChainingEvent(mpTargetLink, false);
 


More information about the Libreoffice-commits mailing list