diff options
author | Ingrid Halama <iha@openoffice.org> | 2004-01-06 18:37:12 +0000 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2004-01-06 18:37:12 +0000 |
commit | 8866e26cc36f62462dbd537f1f71beb8e1ec133c (patch) | |
tree | ca8dbd5d111b4823bf10cdc2291d4ded644042ac /chart2 | |
parent | c4267f2fc31292fa4dccba7e5cf45276c3e3fac5 (diff) |
handle NULL
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 6d0626662e95..e8108e9edaba 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ChartController_Window.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: iha $ $Date: 2003-12-12 20:12:43 $ + * last change: $Author: iha $ $Date: 2004-01-06 19:37:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -607,6 +607,9 @@ void ChartController::execute_MouseButtonDown( const MouseEvent& rMEvt ) DrawViewWrapper* pDrawViewWrapper = m_pDrawViewWrapper; Point aMPos = pWindow->PixelToLogic(rMEvt.GetPosPixel()); + if( !pDrawViewWrapper ) + return; + if ( MOUSE_LEFT == rMEvt.GetButtons() ) { pWindow->GrabFocus(); |