diff options
-rw-r--r-- | basctl/source/basicide/ObjectCatalog.cxx | 3 | ||||
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basctl/source/basicide/ObjectCatalog.cxx b/basctl/source/basicide/ObjectCatalog.cxx index 5ad7913ae139..89b3f4e2b824 100644 --- a/basctl/source/basicide/ObjectCatalog.cxx +++ b/basctl/source/basicide/ObjectCatalog.cxx @@ -54,8 +54,7 @@ ObjectCatalog::~ObjectCatalog() { disposeOnce(); } void ObjectCatalog::dispose() { - if (!IsDisposed()) - GetParent()->GetSystemWindow()->GetTaskPaneList()->RemoveWindow(this); + GetParent()->GetSystemWindow()->GetTaskPaneList()->RemoveWindow(this); m_xTitle.reset(); m_xTree.reset(); DockingWindow::dispose(); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 7d06e117d072..3335424583a0 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1679,8 +1679,7 @@ void WatchWindow::dispose() m_xRemoveWatchButton.reset(); m_xTitleArea.reset(); m_xTreeListBox.reset(); - if (!IsDisposed()) - GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); + GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); DockingWindow::dispose(); } @@ -1836,8 +1835,7 @@ StackWindow::~StackWindow() void StackWindow::dispose() { - if (!IsDisposed()) - GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); + GetSystemWindow()->GetTaskPaneList()->RemoveWindow( this ); m_xTitle.reset(); m_xTreeListBox.reset(); DockingWindow::dispose(); |