summaryrefslogtreecommitdiff
path: root/sw/source/core/text/frmform.cxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2000-10-26 06:41:24 +0000
committerAndreas Martens <ama@openoffice.org>2000-10-26 06:41:24 +0000
commitc87666f64c80852bed120b2048486c2fbb4d4eed (patch)
tree86143d29c79c01bd71b47f801a4f3f91de7438ec /sw/source/core/text/frmform.cxx
parentd9466e9e09f8aa618f722d9d7bef7469aa51dc14 (diff)
New: Two-line-portions with surrounding brackets
Diffstat (limited to 'sw/source/core/text/frmform.cxx')
-rw-r--r--sw/source/core/text/frmform.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx
index 04f8056b5aab..2406c7eee8d7 100644
--- a/sw/source/core/text/frmform.cxx
+++ b/sw/source/core/text/frmform.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: frmform.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ama $ $Date: 2000-10-16 13:11:59 $
+ * last change: $Author: ama $ $Date: 2000-10-26 07:36:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1324,12 +1324,17 @@ void SwTxtFrm::_Format( SwTxtFormatter &rLine, SwTxtFormatInfo &rInf,
if( pFld )
{
pRest->TakeNextOffset( pFld );
- xub_StrLen nEndOf;
+ const SwTxtAttr* pTwoLines;
// If we get a field portion rest in a multi-line part of the
// text, we have to create the surrounding multi-portion, too.
- if( GetOfst() && 0 < (nEndOf = rInf.EndOfMulti( GetOfst()-1) ) )
+ if( GetOfst() &&
+ 0 != (pTwoLines = rInf.GetTwoLines( GetOfst()-1) ) )
{
- SwMultiPortion* pTmp = new SwMultiPortion( nEndOf );
+ SwMultiPortion* pTmp =
+ new SwMultiPortion( *pTwoLines->GetEnd() );
+#ifdef DEBUG
+ pTmp->SetBrackets( 0, ']' );
+#endif
pTmp->SetFldRest( pRest );
rInf.SetRest( pTmp );
}