Skip to content

Commit

Permalink
[graf2d] mimick TPDF behavior with box strokes also in TLatex
Browse files Browse the repository at this point in the history
box stroke is only painted if opacity is 100%
  • Loading branch information
ferdymercury authored and couet committed Dec 19, 2024
1 parent 7a16d86 commit c133a73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graf2d/postscript/src/TTeXDump.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,14 @@ void TTeXDump::DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
if (fillis==1) {
SetColor(fFillColor);
PrintStr("@");
PrintStr("\\draw [color=c, fill=c");
if (fCurrentAlpha != 1.) {
PrintStr("\\fill [c");
PrintStr(", fill opacity=");
WriteReal(fCurrentAlpha, kFALSE);
}
else {
PrintStr("\\draw [color=c, fill=c");
}
PrintStr("] (");
WriteReal(x1c, kFALSE);
PrintFast(1,",");
Expand Down

0 comments on commit c133a73

Please sign in to comment.