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-31 14:30:10 +0000
commitcbbe5c471cad37ab434a11b804c66e0b424af8a7 (patch)
tree84e3bd16973331c5f25495132f237e0682e497f7
parent8deb8ccdcfc06099a8a293a1ad16d1966f131007 (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/35845 Tested-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 afd00eb3389a..d369ac46132a 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()) )