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

coverity#1397054 silence bogus Dereference after null check

Change-Id: Ifceb60ee9f1f5e0ba5fd68d88a0358b5400008ee
üst 7803f6ba
......@@ -690,12 +690,14 @@ void Window::ImplInvalidateFrameRegion( const vcl::Region* pRegion, InvalidateFl
mpWindowImpl->mnPaintFlags |= ImplPaintFlags::PaintAllChildren;
if ( !(nFlags & InvalidateFlags::NoErase) )
mpWindowImpl->mnPaintFlags |= ImplPaintFlags::Erase;
if ( !pRegion )
mpWindowImpl->mnPaintFlags |= ImplPaintFlags::PaintAll;
// if not everything has to be redrawn, add the region to it
if ( !(mpWindowImpl->mnPaintFlags & ImplPaintFlags::PaintAll) )
else if ( !(mpWindowImpl->mnPaintFlags & ImplPaintFlags::PaintAll) )
{
// if not everything has to be redrawn, add the region to it
mpWindowImpl->maInvalidateRegion.Union( *pRegion );
}
// Handle transparent windows correctly: invalidate must be done on the first opaque parent
if( ((IsPaintTransparent() && !(nFlags & InvalidateFlags::NoTransparent)) || (nFlags & InvalidateFlags::Transparent) )
......
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