From 32f282382db8f4f78b4bf85958db48d1de49117e Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Thu, 31 May 2001 21:36:22 +0000 Subject: [PATCH] In case TPolyLine::SetOption hasbeen called and the Draw function is called with a blank option, the internal fOption is used. git-svn-id: http://root.cern.ch/svn/root/trunk@2346 27541ba8-7e3a-0410-8455-c3a389f83636 --- graf/src/TPolyLine.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graf/src/TPolyLine.cxx b/graf/src/TPolyLine.cxx index 717a9f5069d..189e8cf8061 100644 --- a/graf/src/TPolyLine.cxx +++ b/graf/src/TPolyLine.cxx @@ -1,4 +1,4 @@ -// @(#)root/graf:$Name: $:$Id: TPolyLine.cxx,v 1.5 2000/12/13 15:13:50 brun Exp $ +// @(#)root/graf:$Name: $:$Id: TPolyLine.cxx,v 1.6 2001/04/10 06:25:13 brun Exp $ // Author: Rene Brun 12/12/94 /************************************************************************* @@ -369,7 +369,8 @@ void TPolyLine::Paint(Option_t *option) { //*-*-*-*-*-*-*-*-*Paint this polyline with its current attributes*-*-*-*-*-*-* //*-* =============================================== - PaintPolyLine(fN, fX, fY, option); + if (strlen(option) > 0) PaintPolyLine(fN, fX, fY, option); + else PaintPolyLine(fN, fX, fY, fOption.Data()); } //______________________________________________________________________________ -- GitLab