Skip to content
Snippets Groups Projects
Commit 71f58ef2 authored by Philippe Canal's avatar Philippe Canal
Browse files

strip (potential) array dimension when constructing the Draw command

git-svn-id: http://root.cern.ch/svn/root/trunk@21450 27541ba8-7e3a-0410-8455-c3a389f83636
parent c9efb363
No related branches found
No related tags found
No related merge requests found
...@@ -281,6 +281,10 @@ void TVirtualBranchBrowsable::GetScope(TString & scope) const ...@@ -281,6 +281,10 @@ void TVirtualBranchBrowsable::GetScope(TString & scope) const
fParent->GetScope(scope); fParent->GetScope(scope);
else { else {
scope=fBranch->GetName(); scope=fBranch->GetName();
Ssiz_t pos = scope.First('[');
if (pos != kNPOS) {
scope.Remove(pos);
}
if (!scope.EndsWith(".")) scope+="."; if (!scope.EndsWith(".")) scope+=".";
const TBranch* mother=fBranch; const TBranch* mother=fBranch;
while (mother != mother->GetMother() && (mother=mother->GetMother())) { while (mother != mother->GetMother() && (mother=mother->GetMother())) {
......
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