diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/common/pdfapp.c | 3 | ||||
-rw-r--r-- | apps/pdftool.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c index 6d82ef39..b01bd485 100644 --- a/apps/common/pdfapp.c +++ b/apps/common/pdfapp.c @@ -635,6 +635,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen) { + ucsbuf[0] = 0; +#if 0 /* pdf_loadtextfromtree needs rewriting, so removing this temporarily */ fz_error *error; pdf_textline *line, *ln; int y, c; @@ -687,5 +689,6 @@ void pdfapp_oncopy(pdfapp_t *app, unsigned short *ucsbuf, int ucslen) ucsbuf[p] = 0; pdf_droptextline(line); +#endif } diff --git a/apps/pdftool.c b/apps/pdftool.c index 36bc35bc..91ecc22b 100644 --- a/apps/pdftool.c +++ b/apps/pdftool.c @@ -719,6 +719,7 @@ drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *drawtimes) void drawtxt(int pagenum) { +#if 0 /* removed temporarily pending rewrite of pdf_loadtextfromtree */ fz_error *error; pdf_textline *line; fz_matrix ctm; @@ -737,6 +738,7 @@ drawtxt(int pagenum) pdf_droptextline(line); drawfreepage(); +#endif } void |