Edit

IABSD.fr/ports/converters/k2pdfopt/patches/patch-k2pdfoptlib_textrows_c

Branch :

  • Show log

    Commit

  • Author : caspar
    Date : 2024-04-18 16:15:44
    Hash : 500e8078
    Message : converters/k2pdfopt: unbreak and update to 2.55 I borrowed some patches from Debian. Contrary to the earlier non-broken situation, integration with Tesseract is not enabled right now. Take MAINTAINER. Suggestion to replace pre-patch target with FIX_CRLF_FILES from sthen@ OK sthen@

  • converters/k2pdfopt/patches/patch-k2pdfoptlib_textrows_c
  • Index: k2pdfoptlib/textrows.c
    --- k2pdfoptlib/textrows.c.orig
    +++ k2pdfoptlib/textrows.c
    @@ -996,6 +996,11 @@ static int maxval(int *x,int n,int n0,int dx,int *inde
             if (imax<0 || x[i]>x[imax])
                 imax=i;
             }
    +    if (imax < 0) 	/* handle negative index by returning the first entry */
    +        if (index)
    +	    (*index)=0;
    +        return(x[0]);
    +
         if (index!=NULL)
             (*index)=imax+n0;
         return(x[imax]);