summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/gluepts.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/gluepts.cxx
parentcacedab63f57a3352706d5fbdbb2e52fe3e41481 (diff)
#95675# added hint prior to clear of object list HINT_OBJLISTCLEAR
Diffstat (limited to 'svx/source/unodraw/gluepts.cxx')
-rw-r--r--svx/source/unodraw/gluepts.cxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx
index 351d4258a290..35149847b565 100644
--- a/svx/source/unodraw/gluepts.cxx
+++ b/svx/source/unodraw/gluepts.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gluepts.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: cl $ $Date: 2001-06-19 14:49:19 $
+ * 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
@@ -75,6 +75,7 @@
#include "svdmodel.hxx"
#include "svdobj.hxx"
#include "svdglue.hxx"
+#include "svdpage.hxx"
using namespace ::com::sun::star;
using namespace ::rtl;
@@ -277,10 +278,24 @@ void SvxUnoGluePointAccess::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
if( mpObject == pSdrHint->GetObject() )
mpObject = NULL;
}
- else if( pSdrHint->GetKind() == HINT_MODELCLEARED || pSdrHint->GetKind() == HINT_OBJLISTCLEARED )
+ else if( pSdrHint->GetKind() == HINT_MODELCLEARED )
{
mpObject = NULL;
}
+ else if( pSdrHint->GetKind() == HINT_OBJLISTCLEAR )
+ {
+ SdrObjList* pObjList = mpObject ? mpObject->GetObjList() : NULL;
+ while( pObjList )
+ {
+ if( pSdrHint->GetObjList() == pObjList )
+ {
+ mpObject = NULL;
+ break;
+ }
+
+ pObjList = pObjList->GetUpList();
+ }
+ }
}
}