From 7ab85cf9186b54d5a31af38069fa21bc22df9795 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Wed, 25 Jun 2008 13:32:24 +0200
Subject: [PATCH] Workaround for second invocation crash of sort dialog options tab.

---
 toolkit/source/awt/vclxtabpage.cxx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/toolkit/source/awt/vclxtabpage.cxx b/toolkit/source/awt/vclxtabpage.cxx
index 92fcc79..4a1c127 100644
--- a/toolkit/source/awt/vclxtabpage.cxx
+++ b/toolkit/source/awt/vclxtabpage.cxx
@@ -92,6 +92,10 @@ void SAL_CALL VCLXTabPage::allocateArea( awt::Rectangle const& area )
          && reqSize.Height > curSize.Height )
         reqSize.Height = curSize.Height;
 
+    // FIXME: missing destructor?
+    if ( !GetWindow() )
+        return;
+
     Size window = GetWindow()->GetSizePixel();
     Size parent = GetWindow()->GetParent()->GetSizePixel();
 
-- 
1.5.6.3.317.g5d44c9.dirty


