summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh2.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-10-04 19:00:19 +0000
committerNiklas Nebel <nn@openoffice.org>2001-10-04 19:00:19 +0000
commitadb371d19f684d333ffad6a31460221a408e9814 (patch)
treeac9d25fef71ba1131f53475a308f12c22af25b7e /sc/source/ui/docshell/docsh2.cxx
parent9f80d54c580daf19f2eb2dd3d174afab30e8921c (diff)
#92722# name from InfoObject must be compared to GetPersistName
Diffstat (limited to 'sc/source/ui/docshell/docsh2.cxx')
-rw-r--r--sc/source/ui/docshell/docsh2.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx
index acd7baf3065f..a5ff01dea473 100644
--- a/sc/source/ui/docshell/docsh2.cxx
+++ b/sc/source/ui/docshell/docsh2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docsh2.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: nn $ $Date: 2001-08-20 08:11:38 $
+ * last change: $Author: nn $ $Date: 2001-10-04 19:59:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -295,7 +295,9 @@ void ScDocShell::RemoveUnknownObjects()
SdrObject* pObject = aIter.Next();
while (pObject && !bFound)
{
- if ( pObject->ISA(SdrOle2Obj) && pObject->GetName() == aObjName )
+ // name from InfoObject is PersistName
+ if ( pObject->ISA(SdrOle2Obj) &&
+ static_cast<SdrOle2Obj*>(pObject)->GetPersistName() == aObjName )
bFound = TRUE;
pObject = aIter.Next();
}