revert  the revision 35962. It was a coverity fix. It make the following code crashes.
revert  the revision 35962. It was a coverity fix. It make the following code crashes.

TH1F h1("h1", "h1", 100, 0, 99); 
h1->Fill(33); 
TImage *img = TImage::Create(); 
h1->Draw() 
img->FromPad(gPad) 
TCanvas c 
img->Draw() 
img->Gray() // crash 

reported in: https://savannah.cern.ch/bugs/index.php?98546


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@46980 27541ba8-7e3a-0410-8455-c3a389f83636

cxx-hep/root-cern,Duraznos/root,jrtomps/root,0x0all/ROOT,beniz/root,smarinac/root,georgtroska/root,smarinac/root,cxx-hep/root-cern,perovic/root,CristinaCristescu/root,gganis/root,dfunke/root,vukasinmilosevic/root,gbitzes/root,nilqed/root,smarinac/root,gbitzes/root,dfunke/root,mkret2/root,sirinath/root,CristinaCristescu/root,perovic/root,omazapa/root,evgeny-boger/root,omazapa/root-old,Duraznos/root,veprbl/root,vukasinmilosevic/root,satyarth934/root,jrtomps/root,agarciamontoro/root,krafczyk/root,thomaskeck/root,simonpf/root,omazapa/root-old,olifre/root,nilqed/root,vukasinmilosevic/root,simonpf/root,bbockelm/root,jrtomps/root,dfunke/root,mkret2/root,sbinet/cxx-root,zzxuanyuan/root,mhuwiler/rootauto,Duraznos/root,sirinath/root,veprbl/root,mhuwiler/rootauto,esakellari/my_root_for_test,cxx-hep/root-cern,vukasinmilosevic/root,omazapa/root,smarinac/root,alexschlueter/cern-root,bbockelm/root,abhinavmoudgil95/root,arch1tect0r/root,krafczyk/root,gbitzes/root,thomaskeck/root,beniz/root,lgiommi/root,vukasinmilosevic/root,olifre/root,alexschlueter/cern-root,abhinavmoudgil95/root,simonpf/root,Y--/root,cxx-hep/root-cern,mattkretz/root,mhuwiler/rootauto,root-mirror/root,esakellari/my_root_for_test,veprbl/root,abhinavmoudgil95/root,esakellari/my_root_for_test,veprbl/root,zzxuanyuan/root,lgiommi/root,karies/root,vukasinmilosevic/root,davidlt/root,dfunke/root,evgeny-boger/root,davidlt/root,georgtroska/root,beniz/root,buuck/root,esakellari/root,smarinac/root,CristinaCristescu/root,Y--/root,omazapa/root,pspe/root,gbitzes/root,veprbl/root,dfunke/root,veprbl/root,zzxuanyuan/root,arch1tect0r/root,BerserkerTroll/root,jrtomps/root,BerserkerTroll/root,satyarth934/root,lgiommi/root,Y--/root,sbinet/cxx-root,omazapa/root,karies/root,gbitzes/root,mhuwiler/rootauto,sawenzel/root,zzxuanyuan/root-compressor-dummy,dfunke/root,georgtroska/root,abhinavmoudgil95/root,esakellari/root,buuck/root,pspe/root,satyarth934/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,olifre/root,simonpf/root,root-mirror/root,bbockelm/root,mhuwiler/rootauto,satyarth934/root,mattkretz/root,georgtroska/root,nilqed/root,esakellari/root,dfunke/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,krafczyk/root,BerserkerTroll/root,karies/root,Y--/root,sawenzel/root,beniz/root,mkret2/root,zzxuanyuan/root-compressor-dummy,satyarth934/root,perovic/root,sirinath/root,sawenzel/root,gbitzes/root,perovic/root,lgiommi/root,lgiommi/root,CristinaCristescu/root,sbinet/cxx-root,CristinaCristescu/root,omazapa/root,jrtomps/root,jrtomps/root,smarinac/root,pspe/root,sawenzel/root,agarciamontoro/root,nilqed/root,perovic/root,thomaskeck/root,pspe/root,gganis/root,olifre/root,mkret2/root,zzxuanyuan/root,gbitzes/root,mkret2/root,cxx-hep/root-cern,sawenzel/root,zzxuanyuan/root-compressor-dummy,veprbl/root,simonpf/root,bbockelm/root,mkret2/root,georgtroska/root,Y--/root,satyarth934/root,BerserkerTroll/root,thomaskeck/root,mkret2/root,davidlt/root,omazapa/root-old,evgeny-boger/root,sirinath/root,karies/root,perovic/root,olifre/root,zzxuanyuan/root-compressor-dummy,Y--/root,zzxuanyuan/root,esakellari/my_root_for_test,esakellari/root,smarinac/root,gganis/root,buuck/root,root-mirror/root,abhinavmoudgil95/root,dfunke/root,esakellari/root,sawenzel/root,zzxuanyuan/root,lgiommi/root,pspe/root,esakellari/root,root-mirror/root,root-mirror/root,georgtroska/root,vukasinmilosevic/root,buuck/root,omazapa/root,veprbl/root,esakellari/root,vukasinmilosevic/root,BerserkerTroll/root,arch1tect0r/root,karies/root,perovic/root,karies/root,georgtroska/root,omazapa/root,vukasinmilosevic/root,arch1tect0r/root,0x0all/ROOT,sawenzel/root,evgeny-boger/root,davidlt/root,sirinath/root,agarciamontoro/root,abhinavmoudgil95/root,0x0all/ROOT,perovic/root,gganis/root,cxx-hep/root-cern,abhinavmoudgil95/root,mhuwiler/rootauto,gganis/root,pspe/root,nilqed/root,Duraznos/root,evgeny-boger/root,smarinac/root,dfunke/root,zzxuanyuan/root,omazapa/root,jrtomps/root,thomaskeck/root,nilqed/root,nilqed/root,satyarth934/root,satyarth934/root,CristinaCristescu/root,esakellari/my_root_for_test,omazapa/root-old,0x0all/ROOT,CristinaCristescu/root,omazapa/root-old,agarciamontoro/root,jrtomps/root,pspe/root,pspe/root,veprbl/root,beniz/root,0x0all/ROOT,beniz/root,krafczyk/root,georgtroska/root,Y--/root,evgeny-boger/root,sbinet/cxx-root,0x0all/ROOT,georgtroska/root,satyarth934/root,jrtomps/root,lgiommi/root,esakellari/root,esakellari/root,CristinaCristescu/root,dfunke/root,perovic/root,simonpf/root,gganis/root,olifre/root,sbinet/cxx-root,lgiommi/root,lgiommi/root,gbitzes/root,dfunke/root,omazapa/root,arch1tect0r/root,beniz/root,BerserkerTroll/root,krafczyk/root,esakellari/my_root_for_test,root-mirror/root,olifre/root,jrtomps/root,davidlt/root,zzxuanyuan/root,Y--/root,smarinac/root,gbitzes/root,mkret2/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,beniz/root,bbockelm/root,esakellari/root,buuck/root,evgeny-boger/root,gbitzes/root,mattkretz/root,agarciamontoro/root,sawenzel/root,pspe/root,davidlt/root,buuck/root,root-mirror/root,omazapa/root-old,lgiommi/root,sbinet/cxx-root,mhuwiler/rootauto,olifre/root,BerserkerTroll/root,Duraznos/root,georgtroska/root,nilqed/root,omazapa/root,thomaskeck/root,mattkretz/root,evgeny-boger/root,lgiommi/root,simonpf/root,omazapa/root-old,evgeny-boger/root,CristinaCristescu/root,sirinath/root,gbitzes/root,0x0all/ROOT,BerserkerTroll/root,0x0all/ROOT,simonpf/root,root-mirror/root,sirinath/root,mattkretz/root,mattkretz/root,gganis/root,beniz/root,CristinaCristescu/root,krafczyk/root,sawenzel/root,olifre/root,sirinath/root,buuck/root,arch1tect0r/root,evgeny-boger/root,buuck/root,buuck/root,sbinet/cxx-root,gganis/root,simonpf/root,karies/root,agarciamontoro/root,mkret2/root,zzxuanyuan/root-compressor-dummy,nilqed/root,Y--/root,sirinath/root,veprbl/root,esakellari/my_root_for_test,davidlt/root,karies/root,sbinet/cxx-root,root-mirror/root,simonpf/root,arch1tect0r/root,Duraznos/root,Duraznos/root,omazapa/root-old,thomaskeck/root,gganis/root,mhuwiler/rootauto,alexschlueter/cern-root,omazapa/root,mhuwiler/rootauto,alexschlueter/cern-root,perovic/root,alexschlueter/cern-root,krafczyk/root,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,arch1tect0r/root,pspe/root,mkret2/root,krafczyk/root,agarciamontoro/root,Y--/root,vukasinmilosevic/root,omazapa/root-old,mattkretz/root,esakellari/root,thomaskeck/root,olifre/root,vukasinmilosevic/root,krafczyk/root,esakellari/my_root_for_test,davidlt/root,smarinac/root,mattkretz/root,gganis/root,agarciamontoro/root,Y--/root,georgtroska/root,arch1tect0r/root,nilqed/root,agarciamontoro/root,esakellari/my_root_for_test,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,abhinavmoudgil95/root,thomaskeck/root,abhinavmoudgil95/root,cxx-hep/root-cern,karies/root,buuck/root,jrtomps/root,abhinavmoudgil95/root,Duraznos/root,mkret2/root,Duraznos/root,zzxuanyuan/root,alexschlueter/cern-root,zzxuanyuan/root,bbockelm/root,thomaskeck/root,karies/root,sbinet/cxx-root,buuck/root,zzxuanyuan/root,cxx-hep/root-cern,BerserkerTroll/root,Duraznos/root,zzxuanyuan/root,krafczyk/root,gganis/root,bbockelm/root,sirinath/root,sawenzel/root,olifre/root,bbockelm/root,CristinaCristescu/root,davidlt/root,root-mirror/root,BerserkerTroll/root,arch1tect0r/root,satyarth934/root,bbockelm/root,beniz/root,pspe/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,mattkretz/root,sawenzel/root,veprbl/root,esakellari/my_root_for_test,perovic/root,mattkretz/root,satyarth934/root,karies/root,krafczyk/root,sbinet/cxx-root,mhuwiler/rootauto,arch1tect0r/root,abhinavmoudgil95/root,mattkretz/root,davidlt/root,omazapa/root-old,nilqed/root,simonpf/root,root-mirror/root,davidlt/root,alexschlueter/cern-root,sirinath/root,mhuwiler/rootauto,agarciamontoro/root,sbinet/cxx-root,0x0all/ROOT,beniz/root