From 1a030c9bed41786b6c05c1f3e2a59d595989f16f Mon Sep 17 00:00:00 2001 From: Olivier Couet <Olivier.Couet@cern.ch> Date: Wed, 20 Sep 2006 14:23:36 +0000 Subject: [PATCH] - PaintBar take into account the value returned by gStyle->GetHistMinimumZero() git-svn-id: http://root.cern.ch/svn/root/trunk@16304 27541ba8-7e3a-0410-8455-c3a389f83636 --- histpainter/src/THistPainter.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/histpainter/src/THistPainter.cxx b/histpainter/src/THistPainter.cxx index 2dbd74af204..1dc576a72c2 100644 --- a/histpainter/src/THistPainter.cxx +++ b/histpainter/src/THistPainter.cxx @@ -1,4 +1,4 @@ -// @(#)root/histpainter:$Name: $:$Id: THistPainter.cxx,v 1.268 2006/09/19 12:18:37 couet Exp $ +// @(#)root/histpainter:$Name: $:$Id: THistPainter.cxx,v 1.269 2006/09/20 11:46:13 couet Exp $ // Author: Rene Brun 26/08/99 /************************************************************************* @@ -1978,6 +1978,7 @@ void THistPainter::PaintBar(Option_t *) if (ymax < gPad->GetUymin()) continue; if (ymax > gPad->GetUymax()) ymax = gPad->GetUymax(); if (ymin < gPad->GetUymin()) ymin = gPad->GetUymin(); + if (gStyle->GetHistMinimumZero() && ymin < 0) ymin=0; w = (xmax-xmin)*width; xmin += offset*(xmax-xmin); xmax = xmin + w; -- GitLab