summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshtxt.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-12-07 14:30:26 +0000
committerChristian Lippka <cl@openoffice.org>2001-12-07 14:30:26 +0000
commit88fa7d75d14f99eb3a7841f1d16ae2d2e33d0a11 (patch)
tree4df5d20b9998483448153ca5d74f5ad00913edba /svx/source/unodraw/unoshtxt.cxx
parentcacedab63f57a3352706d5fbdbb2e52fe3e41481 (diff)
#95675# added hint prior to clear of object list HINT_OBJLISTCLEAR
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r--svx/source/unodraw/unoshtxt.cxx23
1 files changed, 19 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index 1ffce99a0a0c..2810d2ea7189 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoshtxt.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: cl $ $Date: 2001-12-05 15:11:09 $
+ * last change: $Author: cl $ $Date: 2001-12-07 15:26:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -235,13 +235,28 @@ void SvxTextEditSourceImpl::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
mbDestroyed = TRUE;
}
}
- else if( pSdrHint->GetKind() == HINT_MODELCLEARED ||
- pSdrHint->GetKind() == HINT_OBJLISTCLEARED )
+ else if( pSdrHint->GetKind() == HINT_MODELCLEARED )
{
if( mpObject )
EndListening( *mpObject->GetModel() );
mbDestroyed = TRUE;
}
+ else if( pSdrHint->GetKind() == HINT_OBJLISTCLEAR )
+ {
+ SdrObjList* pObjList = mpObject ? mpObject->GetObjList() : NULL;
+ while( pObjList )
+ {
+ if( pSdrHint->GetObjList() == pObjList )
+ {
+ mbDestroyed = sal_True;
+ if( mpObject )
+ EndListening( *mpObject->GetModel() );
+ break;
+ }
+
+ pObjList = pObjList->GetUpList();
+ }
+ }
}
if( mbDestroyed )