summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-01-19 10:58:03 +0000
committerjp <jp@openoffice.org>2001-01-19 10:58:03 +0000
commitc28bc623f245f912e009ae93b96970ed7df57723 (patch)
treeadda6c8baa3efaf36eee7ef614e9d88e45eaad5a
parentd3dc275f74ea5a2fb305f302c266389ae439da32 (diff)
Bug #82775#: IsSelOver - handle only valid frames
-rw-r--r--sw/source/core/crsr/swcrsr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 2c02cc112cd5..8d7506956f5b 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: swcrsr.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: jp $ $Date: 2001-01-15 17:37:37 $
+ * last change: $Author: jp $ $Date: 2001-01-19 11:58:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -403,7 +403,7 @@ FASTBOOL SwCursor::IsSelOvr( int eFlags )
if( pNd->IsCntntNode() && 0 == (SwUnoCrsr*)*this )
{
const SwCntntFrm* pFrm = ((SwCntntNode*)pNd)->GetFrm();
- if( pFrm && 0 == pFrm->Frm().Height() &&
+ if( pFrm && pFrm->IsValid() && 0 == pFrm->Frm().Height() &&
0 != ( SELOVER_CHANGEPOS & eFlags ) )
{
// skip to the next / prev valida paragraph with a layout