diff options
author | Andre Fischer <af@apache.org> | 2013-05-17 08:56:55 +0000 |
---|---|---|
committer | Andre Fischer <af@apache.org> | 2013-05-17 08:56:55 +0000 |
commit | 8dc875f17c0cdd41e7ba6ad2f4c1ea3bda1a8be2 (patch) | |
tree | 0caf3e10116568526e3ae06fad4cd5f18d9309fd /vcl | |
parent | 8fd2d48a89963893ce11960d561f065f0255ec58 (diff) |
122329: Disable undocking of stylist in the sidebar.
Notes
Notes:
merged as: 048eca411083bc8a2ef95e5701bf7eba5d232a2d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/dockwin.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index d8d70f754fbd..bee7abff522c 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -762,10 +762,19 @@ void DockingWindow::Resizing( Size& ) void DockingWindow::StateChanged( StateChangedType nType ) { - if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + switch(nType) { - ImplInitSettings(); - Invalidate(); + case STATE_CHANGE_CONTROLBACKGROUND: + ImplInitSettings(); + Invalidate(); + break; + + case STATE_CHANGE_STYLE: + mbDockable = (GetStyle() & WB_DOCKABLE) != 0; + break; + + default: + break; } Window::StateChanged( nType ); |