summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 256e71743ab6..8538512b0165 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -9684,6 +9684,8 @@ Size Window::get_preferred_size() const
void Window::take_properties(Window &rOther)
{
WindowImpl *pWindowImpl = rOther.mpWindowImpl;
+ if (!mpWindowImpl->mpRealParent)
+ ImplInit(pWindowImpl->mpRealParent, rOther.GetStyle(), NULL);
std::swap(mpWindowImpl->mpUserData, pWindowImpl->mpUserData);
std::swap(mpWindowImpl->mpExtImpl, pWindowImpl->mpExtImpl);
std::swap(mpWindowImpl->mpCursor, pWindowImpl->mpCursor);