summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2010-08-13 08:01:31 +0200
committerAndreas Bregas <ab@openoffice.org>2010-08-13 08:01:31 +0200
commitd2aa21c67466637572b0fbd06cc941c1d60d9dc4 (patch)
treede67c23de06316cacd1a99c36835bcc5276d624b
parent20e2562e7be5ea6009e42d4cb9818642e9daa5f9 (diff)
mib18: #163254# Set right name and parent for copied object class members
-rwxr-xr-xbasic/source/classes/sb.cxx4
-rwxr-xr-xbasic/source/comp/sbcomp.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 1427e7a74fdf..dab060500e05 100755
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -571,12 +571,16 @@ SbClassModuleObject::SbClassModuleObject( SbModule* pClassModule )
{
SbModule* pClassModule = pClassModuleObj->getClassModule();
SbClassModuleObject* pNewObj = new SbClassModuleObject( pClassModule );
+ pNewObj->SetName( pProp->GetName() );
+ pNewObj->SetParent( pClassModule->pParent );
pNewProp->PutObject( pNewObj );
}
else if( aObjClass.EqualsIgnoreCaseAscii( "Collection" ) )
{
String aCollectionName( RTL_CONSTASCII_USTRINGPARAM("Collection") );
BasicCollection* pNewCollection = new BasicCollection( aCollectionName );
+ pNewCollection->SetName( pProp->GetName() );
+ pNewCollection->SetParent( pClassModule->pParent );
pNewProp->PutObject( pNewCollection );
}
}
diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx
index e6fe73177dd2..5b7e5c70591d 100755
--- a/basic/source/comp/sbcomp.cxx
+++ b/basic/source/comp/sbcomp.cxx
@@ -261,7 +261,7 @@ void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, INT32 nCallLvl,
{
aStr.AppendAscii( "Entering " );
}
- String aModuleName = pModule->GetName();
+ String aModuleName = pTraceMod->GetName();
aStr += aModuleName;
if( pMethod != NULL )
{