Skip to content
Snippets Groups Projects
Commit cf4e7d53 authored by Rene Brun's avatar Rene Brun
Browse files

Fix a shadowed variable

git-svn-id: http://root.cern.ch/svn/root/trunk@23552 27541ba8-7e3a-0410-8455-c3a389f83636
parent e42037c9
No related branches found
No related tags found
No related merge requests found
......@@ -83,13 +83,13 @@ void TGLLightSetSubEditor::SetModel(TGLLightSet* m)
// New model was set, refresh data.
fM = m;
UInt_t ls = fM->GetLightState();
UInt_t als = fM->GetLightState();
fTopLight ->SetState((ls & TGLLightSet::kLightTop) ? kButtonDown : kButtonUp);
fRightLight ->SetState((ls & TGLLightSet::kLightRight) ? kButtonDown : kButtonUp);
fBottomLight->SetState((ls & TGLLightSet::kLightBottom) ? kButtonDown : kButtonUp);
fLeftLight ->SetState((ls & TGLLightSet::kLightLeft) ? kButtonDown : kButtonUp);
fFrontLight ->SetState((ls & TGLLightSet::kLightFront) ? kButtonDown : kButtonUp);
fTopLight ->SetState((als & TGLLightSet::kLightTop) ? kButtonDown : kButtonUp);
fRightLight ->SetState((als & TGLLightSet::kLightRight) ? kButtonDown : kButtonUp);
fBottomLight->SetState((als & TGLLightSet::kLightBottom) ? kButtonDown : kButtonUp);
fLeftLight ->SetState((als & TGLLightSet::kLightLeft) ? kButtonDown : kButtonUp);
fFrontLight ->SetState((als & TGLLightSet::kLightFront) ? kButtonDown : kButtonUp);
fSpecularLight->SetState(fM->GetUseSpecular() ? kButtonDown : kButtonUp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment