diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 19:10:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:05:56 +0100 |
commit | bb04d85521acd1bea92bf9fdf4e3d17053b3a99f (patch) | |
tree | 880f0b61315049860b352645bd12ab358729c85b /sw/source/ui/fmtui | |
parent | f04803ecd33210bebfc85d60690c26200424a077 (diff) |
coverity#736862 Dereference before null check
Change-Id: I0264f7eeb003274d7a061caecc6fc6fb5c6b9fb7
Diffstat (limited to 'sw/source/ui/fmtui')
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index cc591f370de2..a6bed3525b99 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -534,7 +534,7 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) aList.push_back( rCharFmtLB.GetEntry(j) ); aSet.Put( SfxStringListItem( SID_CHAR_FMT_LIST_BOX,&aList ) ) ; - FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell)); + FieldUnit eMetric = ::GetDfltMetric(pDocShell->ISA(SwWebDocShell)); aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM, static_cast< sal_uInt16 >(eMetric))); rPage.PageCreated(aSet); } |