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

- Fix coverity reports RETURNS_NULL and UNINIT

git-svn-id: http://root.cern.ch/svn/root/trunk@42714 27541ba8-7e3a-0410-8455-c3a389f83636
parent 35e1c26e
No related branches found
No related tags found
No related merge requests found
......@@ -431,7 +431,11 @@ void TGX11TTF::RenderString(Int_t x, Int_t y, ETextMode mode)
ULong_t bg;
XGCValues values;
gc = GetGC(3);
if (gc) XGetGCValues(fDisplay, *gc, GCForeground | GCBackground, &values);
if (!gc) {
Error("DrawText", "error getting Graphics Context");
return;
}
XGetGCValues(fDisplay, *gc, GCForeground | GCBackground, &values);
// get the background
if (mode == kClear) {
......
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