coverity#735838 Dereference after null check
Change-Id: I5a0a9cfdac0444beb049bf9e883ffced25500950
This commit is contained in:
@@ -93,10 +93,9 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq )
|
|||||||
/* if we are on a master page, the changes apply for all pages and notes-
|
/* if we are on a master page, the changes apply for all pages and notes-
|
||||||
pages who are using the relevant layout */
|
pages who are using the relevant layout */
|
||||||
bool bOnMaster = false;
|
bool bOnMaster = false;
|
||||||
if( mpViewShell && dynamic_cast< const DrawViewShell *>( mpViewShell ) != nullptr)
|
if (DrawViewShell *pShell = dynamic_cast<DrawViewShell*>(mpViewShell))
|
||||||
{
|
{
|
||||||
EditMode eEditMode =
|
EditMode eEditMode = pShell->GetEditMode();
|
||||||
static_cast<DrawViewShell*>(mpViewShell)->GetEditMode();
|
|
||||||
if (eEditMode == EM_MASTERPAGE)
|
if (eEditMode == EM_MASTERPAGE)
|
||||||
bOnMaster = true;
|
bOnMaster = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user