summaryrefslogtreecommitdiff
path: root/sw/source/ui/fmtui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-01 17:11:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-01 20:29:02 +0100
commit74343722f64fe8be0484ab614eebb34333e26392 (patch)
tree9af708e481dfb2fae200c71ccfadba0810734297 /sw/source/ui/fmtui
parent6250f61fc8b87aacaec2c48c7751f15e9222fa2c (diff)
coverity#1242505 Dereference before null check
Change-Id: I63a5361eb338dba30d76f4a0a1afb88e7de5f401
Diffstat (limited to 'sw/source/ui/fmtui')
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx
index c13d8810777d..c6255cd7872a 100644
--- a/sw/source/ui/fmtui/tmpdlg.cxx
+++ b/sw/source/ui/fmtui/tmpdlg.cxx
@@ -291,7 +291,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent,
m_nPageId = AddTabPage("page",
pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ),
pFact->GetTabPageRangesFunc( RID_SVXPAGE_PAGE ) );
- if(!pActShell || 0 == ::GetHtmlMode(pWrtShell->GetView().GetDocShell()))
+ if (0 == ::GetHtmlMode(pWrtShell->GetView().GetDocShell()))
{
OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BORDER ), "GetTabPageCreatorFunc fail!");
OSL_ENSURE(pFact->GetTabPageRangesFunc( RID_SVXPAGE_BORDER ), "GetTabPageRangesFunc fail!");