diff options
author | Andreas Bregas <ab@openoffice.org> | 2010-08-13 08:01:31 +0200 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2010-08-13 08:01:31 +0200 |
commit | 4aea598fb6ddfcfc883101be59ce5e3185d186e0 (patch) | |
tree | 04ddd8ae427bce6eac525445c4eda0d84cceeecb /basic | |
parent | 753d301aaa33b87d5ce4eb607d8802bbe09b8e13 (diff) |
mib18: #163254# Set right name and parent for copied object class members
Diffstat (limited to 'basic')
-rwxr-xr-x | basic/source/classes/sb.cxx | 4 | ||||
-rwxr-xr-x | basic/source/comp/sbcomp.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 464b168bdd..3e83948fca 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 b1769343bb..f9cd852efc 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 ) { |