summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-07-02 08:58:03 +0000
committerRüdiger Timm <rt@openoffice.org>2008-07-02 08:58:03 +0000
commitcee96132e33dbb37c2a69cb1007f5b0334e8056e (patch)
tree126b2bbae8a0f802c2e13e701ff7c45599039f5d
parent1f0f94575da4950faf05af0ae1f5a8c211750cf0 (diff)
INTEGRATION: CWS npower10 (1.16.132); FILE MERGED
2008/05/07 07:10:52 pflin 1.16.132.2: RESYNC: (1.16-1.17); FILE MERGED 2007/12/20 21:23:01 npower 1.16.132.1: #58089
-rw-r--r--basic/source/comp/exprgen.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/basic/source/comp/exprgen.cxx b/basic/source/comp/exprgen.cxx
index 5c8b8d087f93..8dfefd03ecdc 100644
--- a/basic/source/comp/exprgen.cxx
+++ b/basic/source/comp/exprgen.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: exprgen.cxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
* This file is part of OpenOffice.org.
*
@@ -127,9 +127,17 @@ void SbiExprNode::Gen( RecursiveMode eRecMode )
(aVar.pDef->IsGlobal() ? _FIND_G : _FIND);
}
- if( eOp == _FIND && pGen->GetParser()->bClassModule )
- eOp = _FIND_CM;
+ if( eOp == _FIND )
+ {
+ SbiProcDef* pProc = aVar.pDef->GetProcDef();
+ if ( pGen->GetParser()->bClassModule )
+ eOp = _FIND_CM;
+ else if ( aVar.pDef->IsStatic() || pProc && pProc->IsStatic() )
+ {
+ eOp = _FIND_STATIC;
+ }
+ }
for( SbiExprNode* p = this; p; p = p->aVar.pNext )
{
if( p == this && pWithParent_ != NULL )