diff options
author | Andreas Bregas <ab@openoffice.org> | 2002-10-31 11:42:44 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2002-10-31 11:42:44 +0000 |
commit | 096fc9eae952b11338827fb8e51cf2d00ecb6698 (patch) | |
tree | 09f8f7c39d57d5c38d1320be6e8cad488b0289fb /basctl/source/basicide/basides3.cxx | |
parent | e90e03ada3231055171f2960a17bccd6a94386b7 (diff) |
#101346# BasicIDEShell::CreateDlgWin(): Check if window pointer is valid
Diffstat (limited to 'basctl/source/basicide/basides3.cxx')
-rw-r--r-- | basctl/source/basicide/basides3.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/basctl/source/basicide/basides3.cxx b/basctl/source/basicide/basides3.cxx index 339e5cb53c19..52ab2132286c 100644 --- a/basctl/source/basicide/basides3.cxx +++ b/basctl/source/basicide/basides3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: basides3.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: tbe $ $Date: 2001-09-25 09:10:51 $ + * last change: $Author: ab $ $Date: 2002-10-31 12:42:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -170,11 +170,14 @@ DialogWindow* BasicIDEShell::CreateDlgWin( StarBASIC* pBasic, String aDlgName ) DBG_ASSERT( nKey, "CreateDlgWin: Kein Key - Fenster nicht gefunden!" ); } - pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar ); - pTabBar->InsertPage( (USHORT)nKey, aDlgName ); - pTabBar->Sort(); - if ( !pCurWin ) - SetCurWindow( pWin, FALSE, FALSE ); + if( pWin ) + { + pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar ); + pTabBar->InsertPage( (USHORT)nKey, aDlgName ); + pTabBar->Sort(); + if ( !pCurWin ) + SetCurWindow( pWin, FALSE, FALSE ); + } bCreatingWindow = FALSE; return pWin; |