summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/objectformattertxtfrm.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-10 14:16:52 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-10 14:16:52 +0000
commit74adea0f4824aed5d6dfec04b249294c2e70f6e8 (patch)
treecf98ba194e4c61315aa2a390e2f39bf30aabca26 /sw/source/core/layout/objectformattertxtfrm.cxx
parente8102b036e1f40669b612aa64a5f991937369ada (diff)
INTEGRATION: CWS swqbf72 (1.17.210); FILE MERGED
2006/06/29 08:35:43 od 1.17.210.1: #b6443897# method <SwObjectFormatterTxtFrm::CheckMovedFwdCondition(..)> - handle special case for moved forward anchor frames in follow flow rows.
Diffstat (limited to 'sw/source/core/layout/objectformattertxtfrm.cxx')
-rw-r--r--sw/source/core/layout/objectformattertxtfrm.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx
index 4a6f9c7f8fd2..355631a589ad 100644
--- a/sw/source/core/layout/objectformattertxtfrm.cxx
+++ b/sw/source/core/layout/objectformattertxtfrm.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: objectformattertxtfrm.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: kz $ $Date: 2006-02-03 17:18:01 $
+ * last change: $Author: obo $ $Date: 2006-07-10 15:16:52 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -647,6 +647,23 @@ bool SwObjectFormatterTxtFrm::CheckMovedFwdCondition(
if ( nPageNum > _nFromPageNum )
{
_noToPageNum = nPageNum;
+ // --> OD 2006-06-28 #b6443897#
+ // Handling of special case:
+ // If anchor frame is move forward into a follow flow row,
+ // <_noToPageNum> is set to <_nFromPageNum + 1>, because it is
+ // possible that the anchor page frame isn't valid, because the
+ // page distance between master row and follow flow row is greater
+ // than 1.
+ if ( _noToPageNum > (_nFromPageNum + 1) )
+ {
+ SwFrm* pAnchorFrm = _rAnchoredObj.GetAnchorFrmContainingAnchPos();
+ if ( pAnchorFrm->IsInTab() &&
+ pAnchorFrm->IsInFollowFlowRow() )
+ {
+ _noToPageNum = _nFromPageNum + 1;
+ }
+ }
+ // <--
bAnchorIsMovedForward = true;
}
}