summaryrefslogtreecommitdiff
path: root/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-21 09:39:43 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-21 09:39:43 +0000
commitce01a5c003a59aa71db53e5ba461706fabb898b3 (patch)
tree6b35953063f93418415de9b2685e7fbaa31e6d75 /sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
parent9833e1cc443a1132947040288217fbfcb323b482 (diff)
INTEGRATION: CWS swqbugfixes12 (1.9.74); FILE MERGED
2005/01/12 14:32:48 od 1.9.74.1: #i40155# <SwToCntntAnchoredObjectPosition::CalcPosition()> - get default for <mpVertPosOrientFrm> on return without positioning. - correct check on anchor character rectangle.
Diffstat (limited to 'sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx')
-rw-r--r--sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx21
1 files changed, 17 insertions, 4 deletions
diff --git a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
index 85a2ba04ad56..d1c615315654 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.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2004-11-16 15:51:15 $
+ * last change: $Author: kz $ $Date: 2005-01-21 10:39:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -286,15 +286,28 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
{
const SwFmtAnchor& rAnch = rFrmFmt.GetAnchor();
// OD 2004-03-24 #i26791# - use new object instance of <SwAnchoredObject>
- if ( !GetAnchoredObj().GetLastCharRect().Height() ||
+ // OD 2005-01-12 - Due to table break algorithm the character
+ // rectangle can have no height. Thus, check also the width
+ if ( ( !GetAnchoredObj().GetLastCharRect().Height() &&
+ !GetAnchoredObj().GetLastCharRect().Width() ) ||
!GetAnchoredObj().GetLastTopOfLine() )
{
// --> OD 2004-07-15 #117380# - suppress check for paragraph
// portion information by passing <false> as first parameter
GetAnchoredObj().CheckCharRectAndTopOfLine( false );
- if ( !GetAnchoredObj().GetLastCharRect().Height() ||
+ // OD 2005-01-12 - Due to table break algorithm the character
+ // rectangle can have no height. Thus, check also the width
+ if ( ( !GetAnchoredObj().GetLastCharRect().Height() &&
+ !GetAnchoredObj().GetLastCharRect().Width() ) ||
!GetAnchoredObj().GetLastTopOfLine() )
{
+ // --> OD 2005-01-12 - get default for <mpVertPosOrientFrm>,
+ // if it's not set.
+ if ( !mpVertPosOrientFrm )
+ {
+ mpVertPosOrientFrm = rAnchorTxtFrm.GetUpper();
+ }
+ // <--
return;
}
}