summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh9.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-24 15:19:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-24 15:19:59 +0000
commit533f390e609da2f4b0e644a543746a767f1bba62 (patch)
tree7750511f16c763240a7f36e61502c2442860f8d9 /sc/source/ui/view/tabvwsh9.cxx
parent8e375ba24da264cc4d711b535c547a2546435475 (diff)
coverity#1265796 Dereference null return value
Change-Id: I779dacdb7fb18ba8148e932b4dc684d08f824cbe
Diffstat (limited to 'sc/source/ui/view/tabvwsh9.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh9.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwsh9.cxx b/sc/source/ui/view/tabvwsh9.cxx
index 6cfbc9656b86..07dd2e13c3d5 100644
--- a/sc/source/ui/view/tabvwsh9.cxx
+++ b/sc/source/ui/view/tabvwsh9.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <svx/imapdlg.hxx>
#include <svx/svdmark.hxx>
#include <svx/svdview.hxx>
#include <svx/gallery.hxx>
@@ -106,7 +107,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
if ( pThisFrame->HasChildWindow( nId ) )
{
- SvxIMapDlg* pDlg = ScGetIMapDlg();
+ SvxIMapDlg* pDlg = GetIMapDlg();
if ( pDlg )
{
SdrView* pDrView = GetSdrView();
@@ -131,7 +132,7 @@ void ScTabViewShell::ExecImageMap( SfxRequest& rReq )
if ( pMark )
{
SdrObject* pSdrObj = pMark->GetMarkedSdrObj();
- SvxIMapDlg* pDlg = ScGetIMapDlg();
+ SvxIMapDlg* pDlg = GetIMapDlg();
if ( ScIMapDlgGetObj(pDlg) == (void*) pSdrObj )
{
@@ -192,7 +193,7 @@ void ScTabViewShell::GetImageMapState( SfxItemSet& rSet )
{
const SdrMarkList& rMarkList = pDrView->GetMarkedObjectList();
if ( rMarkList.GetMarkCount() == 1 )
- if ( ScIMapDlgGetObj(ScGetIMapDlg()) ==
+ if ( ScIMapDlgGetObj(GetIMapDlg()) ==
(void*) rMarkList.GetMark(0)->GetMarkedSdrObj() )
bDisable = false;
}