summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2004-01-06 18:37:12 +0000
committerIngrid Halama <iha@openoffice.org>2004-01-06 18:37:12 +0000
commit8866e26cc36f62462dbd537f1f71beb8e1ec133c (patch)
treeca8dbd5d111b4823bf10cdc2291d4ded644042ac /chart2
parentc4267f2fc31292fa4dccba7e5cf45276c3e3fac5 (diff)
handle NULL
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx7
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();