Skip to content
Snippets Groups Projects
Commit 88259eda authored by Olivier Couet's avatar Olivier Couet
Browse files

Fix coverity report RETURNED_NULL

git-svn-id: http://root.cern.ch/svn/root/trunk@42652 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9e53e8a0
Branches
Tags
No related merge requests found
......@@ -2586,7 +2586,7 @@ void TGX11::SetOpacity(Int_t percent)
// get pixmap from server as image
XImage *image = XGetImage(fDisplay, gCws->fDrawing, 0, 0, gCws->fWidth,
gCws->fHeight, AllPlanes, ZPixmap);
if (!image) return;
// collect different image colors
int x, y;
for (y = 0; y < (int) gCws->fHeight; y++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment