diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-08 10:05:00 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-08 10:05:00 +0000 |
commit | acc295bcee9f7df0f9a36a3ac81b441ece7cc9c9 (patch) | |
tree | 7b563cd53dab0401c9f3e9f428b3c0df637eb160 /sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx | |
parent | d7b1ae0ee23c6ef02f714aad4b17c6caed1aadd8 (diff) |
INTEGRATION: CWS swqbf34 (1.13.186); FILE MERGED
2005/06/28 12:17:59 od 1.13.186.1: #i45085# <lcl_DoesVertPosFits(..)> - correct check for test grow
Diffstat (limited to 'sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx')
-rw-r--r-- | sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx index 8f44ff623aaf..4601b676ff62 100644 --- a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx +++ b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tocntntanchoredobjectposition.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: vg $ $Date: 2005-03-09 12:18:19 $ + * last change: $Author: obo $ $Date: 2005-07-08 11:05:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -207,8 +207,12 @@ bool lcl_DoesVertPosFits( const SwTwips _nRelPosY, } else if ( _pUpperOfOrientFrm->IsInTab() && _bGrowInTable ) { - bVertPosFits = const_cast<SwLayoutFrm*>(_pUpperOfOrientFrm)-> + // --> OD 2005-06-08 #i45085# - check, if upper frame would grow the + // excepted amount of twips. + const SwTwips nTwipsGrown = const_cast<SwLayoutFrm*>(_pUpperOfOrientFrm)-> Grow( _nRelPosY - _nAvail, TRUE ) > 0; + bVertPosFits = ( nTwipsGrown == ( _nRelPosY - _nAvail ) ); + // <-- if ( bVertPosFits ) _orpLayoutFrmToGrow = const_cast<SwLayoutFrm*>(_pUpperOfOrientFrm); } |