Kaydet (Commit) bb04d855 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736862 Dereference before null check

Change-Id: I0264f7eeb003274d7a061caecc6fc6fb5c6b9fb7
üst f04803ec
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment