Kaydet (Commit) b55d8661 authored tarafından Justin Luth's avatar Justin Luth

tdf#108932 - prevent textbox shrink from actually growing

fix regression from a4dee94a for
a particular situation - where the textbox flowed onto the following
page.

Change-Id: I58fe2909411c4e5e484083cfc395976f0bc4ba17
Reviewed-on: https://gerrit.libreoffice.org/40558Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
üst 04d70c09
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment