diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-03 08:52:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-03 15:58:24 +0100 |
commit | a13b6c3865fcd6a3fc31f015798b8d7cf3b8a7b5 (patch) | |
tree | 39c340042cdef9c9fa284079c967eb620c92136f /sd | |
parent | b2e118e92f9fa593a215930dc47642145f0a3d7c (diff) |
coverity#704756 Dereference after null check
Change-Id: I004b68ff42d2f56cb7eb1f3a0b20de841a0919c4
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuscale.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 04c8718bc40d..05ae58801ad4 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -131,9 +131,6 @@ void FuScale::DoExecute( SfxRequest& rReq ) default: { rReq.Ignore (); - /* - rReq.Done( *( pDlg->GetOutputItemSet() ) ); - pArgs = rReq.GetArgs();*/ } break; } @@ -142,6 +139,9 @@ void FuScale::DoExecute( SfxRequest& rReq ) pDlg.reset(); + if (!mpViewShell) + return; + switch (((const SvxZoomItem &) aArgs.Get (SID_ATTR_ZOOM)).GetType ()) { case SVX_ZOOM_PERCENT: |