summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-05-20 08:29:55 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-05-20 08:29:55 +0000
commitc1f9f3584f6c0d88f473fdb8db2cdd4cb62c7093 (patch)
tree5962ffd3c7385925d88d0f95e92f3e2b1cf09809 /vcl/source
parent2acc6a977bf505ace3268799996b0461c79e0893 (diff)
INTEGRATION: CWS vcl40 (1.98.36); FILE MERGED
2005/05/18 09:11:17 ssa 1.98.36.1: #122045# avoid crash if pWindow was the HelpWin
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/winproc.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 0d010984598a..4a86854c84f4 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: winproc.cxx,v $
*
- * $Revision: 1.98 $
+ * $Revision: 1.99 $
*
- * last change: $Author: obo $ $Date: 2005-04-18 09:56:12 $
+ * last change: $Author: rt $ $Date: 2005-05-20 09:29:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -498,7 +498,17 @@ long ImplHandleMouseEvent( Window* pWindow, USHORT nSVEvent, BOOL bMouseLeave,
{
pWindow->mpWindowImpl->mpFrameData->mbMouseIn = FALSE;
if ( pSVData->maHelpData.mpHelpWin && !pSVData->maHelpData.mbKeyboardHelp )
+ {
+ ImplDelData aDelData;
+ pWindow->ImplAddDel( &aDelData );
+
ImplDestroyHelpWindow();
+
+ if ( aDelData.IsDelete() )
+ return 1; // pWindow is dead now - avoid crash! (#122045#)
+ else
+ pWindow->ImplRemoveDel( &aDelData );
+ }
}
else
pWindow->mpWindowImpl->mpFrameData->mbMouseIn = TRUE;