summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Jaap <patj@mail.de>2017-03-29 11:35:25 +0200
committerMichael Stahl <mstahl@redhat.com>2017-03-29 12:40:26 +0000
commit80b9b6761e8cb974e0cdc0c7be0eb95f8745d86f (patch)
tree07754960ee3e3a964017cfed1badd848eeed3ae1
parentb6853991fce5b4129d0bedf4a7b74fd9e3898bc2 (diff)
tdf#101627 disable shrinking for footer textboxes
the shrinking patch a4dee94afed9ade6ac50237c8d99a6e49d3bebc1 causes problems, if the textboxes are anchored in the footer. Therefore, disable it in this case. For details, see comments in bug tracker. Change-Id: I117a99041ff67c19a9de17803ff7864c62afdb50 Reviewed-on: https://gerrit.libreoffice.org/34517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/source/core/objectpositioning/anchoredobjectposition.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/objectpositioning/anchoredobjectposition.cxx b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
index 373cf036a284..3a4d55f0f88d 100644
--- a/sw/source/core/objectpositioning/anchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
@@ -486,8 +486,12 @@ SwTwips SwAnchoredObjectPosition::ImplAdjustVertRelPos( const SwTwips nTopOfAnch
nAdjustedRelPosY = aPgAlignArea.Top() - nTopOfAnch;
}
- // tdf#91260 - allow textboxes extending beyond the page bottom
- if ( nAdjustedRelPosY < nProposedRelPosY )
+ // tdf#91260 - allow textboxes extending beyond the page bottom
+ // tdf#101627 - the patch a4dee94afed9ade6ac50237c8d99a6e49d3bebc1
+ // for tdf#91260 causes problems if the textbox
+ // is anchored in the footer, so exclude this case
+ if ( !( GetAnchorFrame().GetUpper() && GetAnchorFrame().GetUpper()->IsFooterFrame() )
+ && nAdjustedRelPosY < nProposedRelPosY )
{
const SwFrameFormat* pFormat = &(GetFrameFormat());
if ( SwTextBoxHelper::isTextBox(&GetObject()) )