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