Skip to content
Snippets Groups Projects
Commit 9c2acd4a authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix coverity report (Dereference null return value )

git-svn-id: http://root.cern.ch/svn/root/trunk@41159 27541ba8-7e3a-0410-8455-c3a389f83636
parent 3f1c0b19
No related branches found
No related tags found
No related merge requests found
......@@ -122,12 +122,15 @@ void TGSpeedo::Build()
Int_t i, nexe, offset;
const TGFont *counterFont = fClient->GetFont("-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*");
if (!counterFont) return;
fCounterFS = counterFont->GetFontStruct();
const TGFont *textFont = fClient->GetFont("-*-helvetica-bold-r-*-*-8-*-*-*-*-*-*-*");
if (!textFont) return;
fTextFS = textFont->GetFontStruct();
const TGFont *labelFont = fClient->GetFont("-*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*");
if (!labelFont) return;
FontStruct_t labelFS = labelFont->GetFontStruct();
if (fImage && fImage->IsValid()) {
......
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