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

coverity#705866 Dereference before null check

Change-Id: I3f70fda1098c2da97f36e474689853379e5b9ac2
üst a7ff16ad
...@@ -132,23 +132,19 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow ( ...@@ -132,23 +132,19 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow (
pParentWindow->EnableChildTransparentMode(true); pParentWindow->EnableChildTransparentMode(true);
} }
if (pWindow != NULL) pWindow->Show(bInitiallyVisible);
{
pWindow->Show(bInitiallyVisible);
pWindow->SetMapMode(MAP_PIXEL);
pWindow->SetBackground();
if ( ! bEnableParentClip)
{
pWindow->SetParentClipMode(PARENTCLIPMODE_NOCLIP);
pWindow->SetPaintTransparent(true);
}
else
{
pWindow->SetParentClipMode(PARENTCLIPMODE_CLIP);
pWindow->SetPaintTransparent(false);
}
pWindow->SetMapMode(MAP_PIXEL);
pWindow->SetBackground();
if ( ! bEnableParentClip)
{
pWindow->SetParentClipMode(PARENTCLIPMODE_NOCLIP);
pWindow->SetPaintTransparent(true);
}
else
{
pWindow->SetParentClipMode(PARENTCLIPMODE_CLIP);
pWindow->SetPaintTransparent(false);
} }
return xWindow; return xWindow;
......
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