Kaydet (Commit) 0ff4c0c3 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS uno4 (1.13.10); FILE MERGED

2003/05/16 09:30:40 ab 1.13.10.1: #109018# GlobalRunInit(): Exclude already initialised basic from parent initialisation
üst 6aab2902
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: sbxmod.cxx,v $ * $RCSfile: sbxmod.cxx,v $
* *
* $Revision: 1.13 $ * $Revision: 1.14 $
* *
* last change: $Author: rt $ $Date: 2003-04-23 16:56:27 $ * last change: $Author: vg $ $Date: 2003-05-22 08:52:42 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -808,9 +808,22 @@ void SbModule::GlobalRunInit( BOOL bBasicStart ) ...@@ -808,9 +808,22 @@ void SbModule::GlobalRunInit( BOOL bBasicStart )
SbxObject* pParent = pBasic->GetParent(); SbxObject* pParent = pBasic->GetParent();
if( pParent ) if( pParent )
pBasic = PTR_CAST(StarBASIC,pParent); {
if( pBasic ) StarBASIC * pParentBasic = PTR_CAST(StarBASIC,pParent);
pBasic->InitAllModules(); if( pParentBasic )
{
pParentBasic->InitAllModules( pBasic );
// #109018 Parent can also have a parent (library in doc)
SbxObject* pParentParent = pParentBasic->GetParent();
if( pParentParent )
{
StarBASIC * pParentParentBasic = PTR_CAST(StarBASIC,pParentParent);
if( pParentParentBasic )
pParentParentBasic->InitAllModules( pParentBasic );
}
}
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment