diff options
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 2 |
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; |