[Libreoffice-commits] core.git: vcl/source
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 30 11:36:46 PDT 2013
vcl/source/window/window.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 31fa0633795e681035f7b9cda5747c9e2af28665
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 30 19:34:29 2013 +0100
coverity#440801 Dereference after null check
Change-Id: I067d52236b189e09955d7aa3ce2fbd25b0d330bd
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f2acdef..8c9c30f 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2319,7 +2319,7 @@ void Window::ImplCalcOverlapRegion( const Rectangle& rSourceRect, Region& rRegio
}
while ( pWindow );
}
- if ( !pWindow->mpWindowImpl->mbFrame )
+ if ( pWindow && !pWindow->mpWindowImpl->mbFrame )
{
aTempRegion = aRegion;
aTempRegion.Exclude( Rectangle( Point( 0, 0 ), Size( mpWindowImpl->mpFrameWindow->mnOutWidth, mpWindowImpl->mpFrameWindow->mnOutHeight ) ) );
More information about the Libreoffice-commits
mailing list