summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-04-21 16:09:37 +0100
committerEike Rathke <erack@redhat.com>2016-05-03 10:06:06 +0000
commitcb654aed2506b31e047f53715f419a7f1e08702d (patch)
tree1cfeba04337ce0b9ef75676cc1ebab3629e7a70b /basctl
parentb8d78268d1c58557122f99d6134a3b1eda7fe6c3 (diff)
Resolves: tdf#99425 crash when closing dialog editor
with undocked "Object Catalog" toolbar Change-Id: I70d51cec699333c5cfc1461d61734c1bbb5323da (cherry picked from commit 4f92eb777ab17e0a2ee478572a46d060742902e1) Reviewed-on: https://gerrit.libreoffice.org/24281 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/objdlg.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/objdlg.cxx b/basctl/source/basicide/objdlg.cxx
index d8b9538aff3d..2371c3facad3 100644
--- a/basctl/source/basicide/objdlg.cxx
+++ b/basctl/source/basicide/objdlg.cxx
@@ -98,8 +98,11 @@ void ObjectCatalog::ToggleFloatingMode ()
}
// ArrangeWindows() -- arranges the controls to the size of the ObjectCatalog
-void ObjectCatalog::ArrangeWindows ()
+void ObjectCatalog::ArrangeWindows()
{
+ if (!aTitle || !aTree)
+ return;
+
Size const aSize = GetOutputSizePixel();
bool const bFloating = IsFloatingMode();