diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-08 09:27:07 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-08 09:27:07 +0000 |
commit | abe702f9be874cf884fc330fc1fea20690644822 (patch) | |
tree | 25d37e60d352aee688774ff71238f4cb55f92ce2 /svtools | |
parent | 6df34fc021419f6772f91220269933b30344d9ca (diff) |
INTEGRATION: CWS dba20blocker (1.44.102); FILE MERGED
2005/07/06 08:45:44 fs 1.44.102.1: copying the fix for #122359# from CWS dba201a into this CWS here
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 0eededb41472..446282ea7681 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svimpbox.cxx,v $ * - * $Revision: 1.44 $ + * $Revision: 1.45 $ * - * last change: $Author: vg $ $Date: 2005-03-10 17:05:12 $ + * last change: $Author: obo $ $Date: 2005-07-08 10:27:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -823,6 +823,13 @@ void SvImpLBox::KeyLeftRight( long nDelta ) // dem letzten Eintrag ist SvLBoxEntry* SvImpLBox::GetClickedEntry( const Point& rPoint ) const { + DBG_ASSERT( pView->GetModel(), "SvImpLBox::GetClickedEntry: how can this ever happen? Please tell me (frank.schoenheit@sun.com) how to reproduce!" ); + if ( !pView->GetModel() ) + // this is quite impossible. Nevertheless, stack traces from the crash reporter + // suggest it isn't. Okay, make it safe, and wait for somebody to reproduce it + // reliably :-\ .... + // #122359# / 2005-05-23 / frank.schoenheit@sun.com + return NULL; if( pView->GetEntryCount() == 0 || !pStartEntry || !pView->GetEntryHeight()) return 0; |