Skip to content

Commit a1b1799

Browse files
committed
Do not save image in SVG in compact mode
This is special mode for testing so skip images completely
1 parent d683418 commit a1b1799

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

graf2d/postscript/src/TSVG.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,11 +975,14 @@ void TSVG::CellArrayFill(Int_t, Int_t, Int_t)
975975

976976
////////////////////////////////////////////////////////////////////////////////
977977
/// Paint the Cell Array as png image
978+
/// Disabled in compact mode to avoid creation of large SVG files
978979

979980
void TSVG::CellArrayPng(char *buffer, int size)
980981
{
981-
TString base64 = TBase64::Encode(reinterpret_cast<char *>(buffer), size);
982-
PrintFast(base64.Length(), base64.Data());
982+
if (!fCompact) {
983+
TString base64 = TBase64::Encode(reinterpret_cast<char *>(buffer), size);
984+
PrintFast(base64.Length(), base64.Data());
985+
}
983986
}
984987

985988
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)