Skip to content
Snippets Groups Projects
Commit 8cb1cca1 authored by Matevz Tadel's avatar Matevz Tadel
Browse files

In SetModel, check if histogram was actually created (coverititis).

git-svn-id: http://root.cern.ch/svn/root/trunk@43894 27541ba8-7e3a-0410-8455-c3a389f83636
parent 0aa8f7e1
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,8 @@ Bool_t TF2GL::SetModel(TObject* obj, const Option_t* opt)
fM = SetModelDynCast<TF2>(obj);
fH = (TH2*) fM->CreateHistogram();
if (!fH) return kFALSE;
fH->GetZaxis()->SetLimits(fH->GetMinimum(), fH->GetMaximum());
if (dynamic_cast<TF3*>(fM))
......
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