diff options
Diffstat (limited to 'dviware/dvipng/dvipng.c')
-rw-r--r-- | dviware/dvipng/dvipng.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dviware/dvipng/dvipng.c b/dviware/dvipng/dvipng.c index 69b6c6c4e8..c71d1a2669 100644 --- a/dviware/dvipng/dvipng.c +++ b/dviware/dvipng/dvipng.c @@ -18,7 +18,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>. - Copyright (C) 2002-2015 Jan-Åke Larsson + Copyright (C) 2002-2015,2019 Jan-Åke Larsson ************************************************************************/ @@ -79,6 +79,10 @@ int main(int argc, char ** argv) kpse_set_program_enabled (kpse_pk_format, makeTexPK, kpse_src_compile); #endif +#ifdef HAVE_TEXLIVE_GS_INIT + texlive_gs_init(); +#endif + initcolor(); parsestdin = DecodeArgs(argc, argv); @@ -99,7 +103,7 @@ int main(int argc, char ** argv) InitPSFontMap(); #endif - DrawPages(); + if (dvi!=NULL) DrawPages(); if (parsestdin) { char line[STRSIZE]; |