libspectre/fix-bsc975503.diff
Bjørn Lie 3630bb71d7 Accepting request 421840 from home:alarrosa:branches:X11:common:Factory
- Add fix-bsc975503.diff to fix handling of PostScript files with
  embedded EPS files. The PS file then contains two "%%EOF" DSC comments
  and the first one stopped the parsing of the file as if the real EOF
  was reached (bsc#975503, fdo#97091).

OBS-URL: https://build.opensuse.org/request/show/421840
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/libspectre?expand=0&rev=25
2016-08-25 06:44:48 +00:00

14 lines
518 B
Diff

Index: libspectre-0.2.7/libspectre/spectre-document.c
===================================================================
--- libspectre-0.2.7.orig/libspectre/spectre-document.c
+++ libspectre-0.2.7/libspectre/spectre-document.c
@@ -67,7 +67,7 @@ spectre_document_load (SpectreDocument *
document->doc = NULL;
}
- document->doc = psscan (filename, SCANSTYLE_NORMAL);
+ document->doc = psscan (filename, SCANSTYLE_IGNORE_EOF);
if (!document->doc) {
document->status = SPECTRE_STATUS_LOAD_ERROR;
return;