summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-09-29 14:56:24 +0200
committerMichael Stahl <mstahl@redhat.com>2015-09-29 14:57:39 +0200
commitd70302ef5c18207a78f6c81aed85c12260f73820 (patch)
treec700d5c93fcfa34560c853f7bee70704bb31b249 /basic
parente5a8eb9e291ca01489235376e04b80d4d6bc3999 (diff)
basic: more plausible build fix than e5a8eb9e
Change-Id: I26fd8a76a17386de73fa12058509ccee7e768512
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxvar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 36d459ad7fcf..e551af2179c9 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -408,7 +408,7 @@ void SbxVariable::SetParent( SbxObject* p )
{
#ifdef DBG_UTIL
// Will the parent of a SbxObject be set?
- if (p)
+ if (p && dynamic_cast<SbxObject*>(this))
{
// then this had to be a child of the new parent
bool bFound = false;