diff options
author | Andre Fischer <af@openoffice.org> | 2010-05-28 13:26:19 +0200 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-05-28 13:26:19 +0200 |
commit | 506928805ff99d435df21ebf8d0828c5698c53dc (patch) | |
tree | d30875317ad21f37554480dadf3208322ddd5e6c /sd/source/ui/dlg/PaneDockingWindow.cxx | |
parent | 125c18fc864c2666c32ad907c6f7fce0d7fea82e (diff) |
renaissance1: #i107215# Some minor fixes and improvements.
Diffstat (limited to 'sd/source/ui/dlg/PaneDockingWindow.cxx')
-rw-r--r-- | sd/source/ui/dlg/PaneDockingWindow.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx index 5925e894a78b..5a1339ea6265 100644 --- a/sd/source/ui/dlg/PaneDockingWindow.cxx +++ b/sd/source/ui/dlg/PaneDockingWindow.cxx @@ -393,6 +393,12 @@ void PaneDockingWindow::MouseButtonDown (const MouseEvent& rEvent) { if (rEvent.GetButtons() == MOUSE_LEFT && mpContentWindow) { + // For some strange reason we have to set the WB_DIALOGCONTROL at + // the content window in order to have it pass focus to its content + // window. Without setting this flag here that works only on views + // that have not been taken from the cash and relocated to this pane + // docking window. + mpContentWindow->SetStyle(mpContentWindow->GetStyle() | WB_DIALOGCONTROL); mpContentWindow->GrabFocus(); } SfxDockingWindow::MouseButtonDown(rEvent); |