summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/psfile.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
commit8d656f7b22badc7a1e4e48811521048ef3df7101 (patch)
tree207c9332ac340eef8b84e90d67a0f0c6a734e547 /Build/source/utils/asymptote/psfile.cc
parentc75ad7aa4d5821b7c4034c949a5ed2401e589bea (diff)
asy 2.47 sources
git-svn-id: svn://tug.org/texlive/trunk@49658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/psfile.cc')
-rw-r--r--Build/source/utils/asymptote/psfile.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/psfile.cc b/Build/source/utils/asymptote/psfile.cc
index 4d03c6837ed..8adce3855db 100644
--- a/Build/source/utils/asymptote/psfile.cc
+++ b/Build/source/utils/asymptote/psfile.cc
@@ -140,15 +140,18 @@ psfile::~psfile()
close();
}
-void psfile::header()
+void psfile::header(bool eps)
{
Int level=settings::getSetting<Int>("level");
- *out << "%!PS-Adobe-" << level << ".0 EPSF-" << level << ".0" << newl;
+ *out << "%!PS-Adobe-" << level << ".0";
+ if(eps)
+ *out << " EPSF-" << level << ".0";
+ *out << newl;
}
void psfile::prologue(const bbox& box)
{
- header();
+ header(true);
BoundingBox(box);
*out << "%%Creator: " << settings::PROGRAM << " " << settings::VERSION
<< REVISION << newl;