diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 14:55:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-02 20:08:17 +0000 |
commit | 67a308c80cf50b72ec9593be7a00789b55da72de (patch) | |
tree | 186f82cbc181e9d30c2ca68e3521a80f014983e9 /sc/source/ui/drawfunc | |
parent | cc157126cc028dd5de19921d6e3b0eca6060e892 (diff) |
coverity#704701 Dereference after null check
Change-Id: I0d9a66d4a609e6df80c3c79b08eee1fb0f95b0eb
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r-- | sc/source/ui/drawfunc/fusel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx index bbd74536f293..b8b005040ad5 100644 --- a/sc/source/ui/drawfunc/fusel.cxx +++ b/sc/source/ui/drawfunc/fusel.cxx @@ -399,7 +399,7 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) ::std::vector< OUString > aExcludedChartNames; ScRangeListVector aProtectedChartRangesVector; - if ( rMEvt.IsLeft() ) + if (pView && rMEvt.IsLeft()) { if ( pView->IsDragObj() ) { @@ -504,7 +504,7 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) } sal_uInt16 nClicks = rMEvt.GetClicks(); - if ( nClicks == 2 && rMEvt.IsLeft() ) + if (pView && nClicks == 2 && rMEvt.IsLeft()) { if ( pView->AreObjectsMarked() ) { |