From 5b6e00b07bef6ac1966b0f97f54f9ebaeab1b85d Mon Sep 17 00:00:00 2001 From: Philippe Canal <pcanal@fnal.gov> Date: Tue, 1 Nov 2011 16:41:10 +0000 Subject: [PATCH] Fix Drawing a top level object (usually TBits). See http://root.cern.ch/phpBB3/viewtopic.php?t=13629 git-svn-id: http://root.cern.ch/svn/root/trunk@41686 27541ba8-7e3a-0410-8455-c3a389f83636 --- tree/tree/src/TBranchElement.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tree/tree/src/TBranchElement.cxx b/tree/tree/src/TBranchElement.cxx index b04562bcb00..de140665910 100644 --- a/tree/tree/src/TBranchElement.cxx +++ b/tree/tree/src/TBranchElement.cxx @@ -2530,6 +2530,8 @@ void* TBranchElement::GetValuePointer() const return 0; } else if (fType == 41) { return 0; + } else if (prID < 0) { + return object; } else { //return GetInfoImp()->GetValue(object,fID,j,-1); if (!GetInfoImp() || !object) return 0; -- GitLab