diff options
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index 43c8cf7d323a..814df2accdd5 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -253,16 +253,17 @@ namespace sfx2 WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE)); SetAlignment(SfxChildAlignment::RIGHT); - GetWindow()->SetHelpId( HID_TASKPANE_WINDOW ); - GetWindow()->SetOutputSizePixel( Size( 300, 450 ) ); + vcl::Window& rWindow = *GetWindow(); - dynamic_cast<SfxDockingWindow*>(GetWindow())->Initialize(i_pInfo); + rWindow.SetHelpId( HID_TASKPANE_WINDOW ); + rWindow.SetOutputSizePixel( Size( 300, 450 ) ); + + dynamic_cast<SfxDockingWindow&>(rWindow).Initialize(i_pInfo); SetHideNotDelete( true ); - GetWindow()->Show(); + rWindow.Show(); } - void TaskPaneWrapper::ActivateToolPanel( const OUString& i_rPanelURL ) { TaskPaneDockingWindow* pDockingWindow = dynamic_cast< TaskPaneDockingWindow* >( GetWindow() ); |