Skip to content
Snippets Groups Projects
Commit 7114d965 authored by Timur Pocheptsov's avatar Timur Pocheptsov
Browse files

Coverity fix: result of gROOT->GetColor was not checked.

git-svn-id: http://root.cern.ch/svn/root/trunk@41210 27541ba8-7e3a-0410-8455-c3a389f83636
parent 15ddcb52
Branches
Tags
No related merge requests found
......@@ -171,9 +171,9 @@ void TGLAxis::PaintGLAxisBody()
// Paint horizontal axis body at position (0,0,0)
TColor *col;
Float_t red, green, blue;
col = gROOT->GetColor(GetLineColor());
col->GetRGB(red, green, blue);
Float_t red = 1.f, green = 1.f, blue = 1.f;
if ((col = gROOT->GetColor(GetLineColor())))
col->GetRGB(red, green, blue);
glColor3d(red, green, blue);
TGLUtil::LineWidth(GetLineWidth());
glBegin(GL_LINES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment