Set/GetDrawOption bug?

Hello,

I’m using root 3.10.02, and this doesn’t seem to work correctly :

root [4] TH1F h
root [5] h.SetDrawOption(“p”)
root [6] h.GetDrawOption()
(const Option_t* 0x40463193)""
root [7]

GetDrawOption always return an empty string.

cheers,
Colin

Colin,

TObject::SetDrawOption, GetDrawOption makes sense only after having drawn the object.

h.Draw();
h.SetDrawOption(“p”);
h.GetDrawOption();

Rene