root/root-usa.patch
Mattias Ellert 9af453a9f9 Update to 5.34.30
- New sub-package: root-python3
- Disable hadoop/hdfs support for F23+ (not installable)
- Drop previously backported gcc 5 patches
2015-04-25 09:56:52 +02:00

15 lines
718 B
Diff

diff -ur root-5.34.30.orig/hist/histpainter/src/THistPainter.cxx root-5.34.30/hist/histpainter/src/THistPainter.cxx
--- root-5.34.30.orig/hist/histpainter/src/THistPainter.cxx 2015-04-23 18:30:25.000000000 +0200
+++ root-5.34.30/hist/histpainter/src/THistPainter.cxx 2015-04-24 20:05:03.349081003 +0200
@@ -2367,7 +2367,10 @@
TH2Poly *p = new TH2Poly("USA","USA Population",lon1,lon2,lat1,lat2);
TFile *f;
- f = TFile::Open("http://root.cern.ch/files/usa.root");
+ if (!gSystem->AccessPathName("$(ROOTSYS)/tutorials/hist/usa.root"))
+ f = TFile::Open("$(ROOTSYS)/tutorials/hist/usa.root");
+ else
+ f = TFile::Open("http://root.cern.ch/files/usa.root");
TMultiGraph *mg;
TKey *key;