[Libreoffice-commits] core.git: sw/source

Justin Luth justin_luth at sil.org
Thu Aug 31 18:16:46 UTC 2017


 sw/source/core/objectpositioning/anchoredobjectposition.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b55d86610128d0b6f8d0fea7c9a3e9d5acd4c878
Author: Justin Luth <justin_luth at sil.org>
Date:   Sat Jul 29 21:01:33 2017 -0400

    tdf#108932 - prevent textbox shrink from actually growing
    
    fix regression from a4dee94afed9ade6ac50237c8d99a6e49d3bebc1 for
    a particular situation - where the textbox flowed onto the following
    page.
    
    Change-Id: I58fe2909411c4e5e484083cfc395976f0bc4ba17
    Reviewed-on: https://gerrit.libreoffice.org/40558
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Justin Luth <justin_luth at sil.org>

diff --git a/sw/source/core/objectpositioning/anchoredobjectposition.cxx b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
index a865228d5b4f..abc898e6bf2c 100644
--- a/sw/source/core/objectpositioning/anchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
@@ -489,7 +489,9 @@ SwTwips SwAnchoredObjectPosition::ImplAdjustVertRelPos( const SwTwips nTopOfAnch
         // tdf#101627 - the patch a4dee94afed9ade6ac50237c8d99a6e49d3bebc1
         //              for tdf#91260 causes problems if the textbox
         //              is anchored in the footer, so exclude this case
+        // tdf#108932 - ensure that the adjustment will only shrink (> 0)
         if ( !( GetAnchorFrame().GetUpper() && GetAnchorFrame().GetUpper()->IsFooterFrame() )
+             && nAdjustedRelPosY > 0
              && nAdjustedRelPosY < nProposedRelPosY )
         {
             const SwFrameFormat* pFormat = &(GetFrameFormat());


More information about the Libreoffice-commits mailing list