summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-07-02 08:58:29 +0000
committerRüdiger Timm <rt@openoffice.org>2008-07-02 08:58:29 +0000
commit951bc8d2b073eb9af7ad776bc553bef38c874940 (patch)
tree155c7ff75306dda53730878324306866a3bae299
parentcee96132e33dbb37c2a69cb1007f5b0334e8056e (diff)
INTEGRATION: CWS npower10 (1.19.64); FILE MERGED
2008/05/07 07:10:36 pflin 1.19.64.3: RESYNC: (1.20-1.22); FILE MERGED 2008/02/26 21:59:38 npower 1.19.64.2: RESYNC: (1.19-1.20); FILE MERGED 2007/12/20 21:23:01 npower 1.19.64.1: #58089
-rw-r--r--basic/source/comp/exprtree.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index c0fc76e758bb..f0e6e42b58f3 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: exprtree.cxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
* This file is part of OpenOffice.org.
*
@@ -291,6 +291,11 @@ SbiExprNode* SbiExpression::Term( void )
if( bObj )
eType = SbxOBJECT;
pDef = AddSym( eTok, *pParser->pPool, eCurExpr, aSym, eType, pPar );
+ // Looks like this is a local ( but undefined variable )
+ // if it is in a static procedure then make this Symbol
+ // static
+ if ( !bObj && pParser->pProc && pParser->pProc->IsStatic() )
+ pDef->SetStatic();
}
else
{