From d70302ef5c18207a78f6c81aed85c12260f73820 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 29 Sep 2015 14:56:24 +0200 Subject: basic: more plausible build fix than e5a8eb9e Change-Id: I26fd8a76a17386de73fa12058509ccee7e768512 --- basic/source/sbx/sbxvar.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basic/source/sbx/sbxvar.cxx') 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(this)) { // then this had to be a child of the new parent bool bFound = false; -- cgit