From 4768743f346b8bf55201949f73b241cbe1aa56d0 Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Fri, 26 Aug 2005 09:42:24 +0000 Subject: [PATCH] From Olivier: - TPad::PaintFillAreaHatches was not called in batch mode in PostScript case. (see http://root.cern.ch/phpBB2/viewtopic.php?p=9033#9033) git-svn-id: http://root.cern.ch/svn/root/trunk@12542 27541ba8-7e3a-0410-8455-c3a389f83636 --- gpad/src/TPad.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpad/src/TPad.cxx b/gpad/src/TPad.cxx index 563cfb89640..82c39760245 100644 --- a/gpad/src/TPad.cxx +++ b/gpad/src/TPad.cxx @@ -1,4 +1,4 @@ -// @(#)root/gpad:$Name: $:$Id: TPad.cxx,v 1.191 2005/08/25 08:04:56 brun Exp $ +// @(#)root/gpad:$Name: $:$Id: TPad.cxx,v 1.192 2005/08/26 09:08:07 brun Exp $ // Author: Rene Brun 12/12/94 /************************************************************************* @@ -2616,6 +2616,7 @@ void TPad::PaintFillArea(Int_t nn, Float_t *xx, Float_t *yy, Option_t *) //*-*- Paint the fill area with hatches Int_t fillstyle = gVirtualX->GetFillStyle(); + if (gPad->IsBatch() && gVirtualPS) fillstyle = gVirtualPS->GetFillStyle(); if (fillstyle >= 3100 && fillstyle < 4000) { PaintFillAreaHatches(nn, x, y, fillstyle); delete [] x; @@ -2710,6 +2711,7 @@ void TPad::PaintFillArea(Int_t nn, Double_t *xx, Double_t *yy, Option_t *) //*-*- Paint the fill area with hatches Int_t fillstyle = gVirtualX->GetFillStyle(); + if (gPad->IsBatch() && gVirtualPS) fillstyle = gVirtualPS->GetFillStyle(); if (fillstyle >= 3100 && fillstyle < 4000) { PaintFillAreaHatches(nn, x, y, fillstyle); delete [] x; @@ -2758,7 +2760,7 @@ void TPad::PaintFillAreaHatches(Int_t nn, Double_t *xx, Double_t *yy, Int_t Fill // // i (1-9) : specify the space between each hatch // 1 = minimum 9 = maximum - // the final spaing is i*GetHatchesSpacing() the hatches spacing + // the final spacing is i*GetHatchesSpacing(). The hatches spacing // is set by SetHatchesSpacing() // // j (0-9) : specify angle between 0 and 90 degrees -- GitLab