summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2010-08-11 08:24:45 +0200
committerAndreas Bregas <ab@openoffice.org>2010-08-11 08:24:45 +0200
commitd888d6060dbe2077fa571f33f53419098f00917c (patch)
tree1a75c0781bf1587e848337b23ef5b887cc7249ac /basic
parentae27c058ca364ca50cc27057e2c63b7f5b84c39d (diff)
mib18: #163121# Fixed back chain handling for new declare implementation
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/dim.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index 8a55a021d2..367be2a3e3 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -981,6 +981,12 @@ void SbiParser::DefDeclare( BOOL bPrivate )
// New declare handling
if( pDef->GetLib().Len() > 0 )
{
+ if( bNewGblDefs && nGblChain == 0 )
+ {
+ nGblChain = aGen.Gen( _JUMP, 0 );
+ bNewGblDefs = FALSE;
+ }
+
USHORT nSavLine = nLine;
aGen.Statement();
pDef->Define();