diff options
author | Patrick Jaap <patj@mail.de> | 2017-03-29 11:35:25 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-04-04 12:19:41 +0200 |
commit | ec52c2f4b7090ced1810b23fd6cc5fb2db4215d2 (patch) | |
tree | 3364082fdee7bc9ed9611c7e7fec35cd7c47a9d8 /sw | |
parent | f89a29c9268b3cf3d8d7beaedb5011b14cd18151 (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>
(cherry picked from commit 80b9b6761e8cb974e0cdc0c7be0eb95f8745d86f)
Reviewed-on: https://gerrit.libreoffice.org/35844
(cherry picked from commit da18188c359dee813fa1d4c7000490f1512c277b)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/objectpositioning/anchoredobjectposition.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/objectpositioning/anchoredobjectposition.cxx b/sw/source/core/objectpositioning/anchoredobjectposition.cxx index 4b300ce8bf3f..c1e7808517c1 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()) ) |