summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-15 23:58:09 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-02-15 23:58:09 +0100
commit9a02d3ff84209d7349527ad245a6f4f1261135e6 (patch)
treecaca256665a02404068094745f3a6ca78c3dd078 /basic
parent3a16bfa1ff6ece66b912ff003ad3897c47d59263 (diff)
debuglevels: BasicManager::ExecuteMacro: when the return value of the executed method is the method itself, don't retrieve its value - it would execute the method, again (encountered in the refactored smoketest_native)
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index bb686c765f4c..a6a1fb5f23c0 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1975,7 +1975,7 @@ ErrCode BasicManager::ExecuteMacro( String const& i_fullyQualifiedName, String c
sCall += ']';
SbxVariable* pRet = pMethod->GetParent()->Execute( sCall );
- if ( pRet )
+ if ( pRet && ( pRet != pMethod ) )
*i_retValue = *pRet;
return SbxBase::GetError();
}