summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2000-11-30 13:40:11 +0000
committerAndreas Martens <ama@openoffice.org>2000-11-30 13:40:11 +0000
commit27f402f3331b7ae302e47821cc6a780810a5cd4e (patch)
tree452d44a3ba6426cebf534db0ba9f34e257d5f7ba /sw/source
parent71fef1b9cc26f5ef0d62fd64689e74950fb72c8f (diff)
#80863#: online-spelling in the page margin
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx25
1 files changed, 14 insertions, 11 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 091d67376817..a2844a684bde 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtedt.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: jp $ $Date: 2000-11-20 16:22:08 $
+ * last change: $Author: ama $ $Date: 2000-11-30 14:40:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -793,19 +793,21 @@ SwRect SwTxtFrm::_AutoSpell( SwCntntNode* pActNode, xub_StrLen nActPos )
if( pEndFrm != pStartFrm )
{
bSameFrame = FALSE;
- aTmp.Left( pStartFrm->Frm().Left() );
- aTmp.Right( pStartFrm->Frm().Right() );
- aTmp.Bottom( pStartFrm->Frm().Bottom() );
- aRect.Top( pEndFrm->Frm().Top() );
- aRect.Left( pEndFrm->Frm().Left() );
- aRect.Right( pEndFrm->Frm().Right() );
+ SwRect aStFrm( pStartFrm->PaintArea() );
+ aTmp.Left( aStFrm.Left() );
+ aTmp.Right( aStFrm.Right() );
+ aTmp.Bottom( aStFrm.Bottom() );
+ aStFrm = pEndFrm->PaintArea();
+ aRect.Top( aStFrm.Top() );
+ aRect.Left( aStFrm.Left() );
+ aRect.Right( aStFrm.Right() );
aRect.Union( aTmp );
while( TRUE )
{
pStartFrm = pStartFrm->GetFollow();
if( pStartFrm == pEndFrm )
break;
- aRect.Union( pStartFrm->Frm() );
+ aRect.Union( pStartFrm->PaintArea() );
}
}
}
@@ -815,8 +817,9 @@ SwRect SwTxtFrm::_AutoSpell( SwCntntNode* pActNode, xub_StrLen nActPos )
aRect.Left( aTmp.Left() );
else
{
- aRect.Left( pStartFrm->Frm().Left() );
- aRect.Right( pStartFrm->Frm().Right() );
+ SwRect aStFrm( pStartFrm->PaintArea() );
+ aRect.Left( aStFrm.Left() );
+ aRect.Right( aStFrm.Right() );
aRect.Top( aTmp.Top() );
}
if( aTmp.Height() > aRect.Height() )