summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-12-02 14:14:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-02 16:48:02 +0000
commit032a4f6b2d771dd4e1b4a1ceee7c3ef15ca356eb (patch)
treeb03bf68809fe30c2e9332c90524814510c15b559 /vcl
parent3a437baee23d45ab64d557fed75e2e1b14aa5541 (diff)
Resolves: #i123765# reset buffered DropTarget when undocking
(cherry picked from commit 8d679227fafe9108c4dc6e8adff85a727e4ef3af) Change-Id: Ia6fba705d91157afea30693fa7078aabc96f02ac
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dockwin.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 966b6c326143..273f6344cdfa 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -827,6 +827,11 @@ void DockingWindow::SetFloatingMode( sal_Bool bFloatMode )
// BorderWindow den Parent umsetzen
if ( mpOldBorderWin )
mpOldBorderWin->SetParent( pWin );
+
+ // #i123765# reset the buffered DropTargets when undocking, else it may not
+ // be correctly initialized
+ mpWindowImpl->mxDNDListenerContainer.clear();
+
SetParent( pWin );
SetPosPixel( Point() );
mpWindowImpl->mpBorderWindow = pWin;